nuttx-apps/testing/ostest
qinwei1 c86509be4c apps: getpid should return process id not thread id
Summary:
   following the change in the nuttx kernel, implement the right semantics:
1. getpid should return the main thread id
2. gettid should return the current thread id

Refer:
 https://github.com/apache/incubator-nuttx/issues/2499
 https://github.com/apache/incubator-nuttx/pull/2518

Nuttx Kernel PR:
 https://github.com/apache/incubator-nuttx/pull/7597

update apps code

Testing PASSED with qemu( 32/64 )

Signed-off-by: qinwei1 <qinwei1@xiaomi.com>
2022-11-17 17:58:45 +08:00
..
aio.c Remove the unnecessary cast for main_t, NULL and argv 2022-10-18 18:40:23 +02:00
barrier.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
cancel.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
cond.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
dev_null.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
fpu.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
getopt.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
Kconfig testing/ostest: remove CONFIG_TESTING_OSTEST_FPUSIZE 2022-04-19 02:48:24 +08:00
Make.defs Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
Makefile ostest: Introduce basic setjmp/longjmp test 2022-03-01 12:03:31 +08:00
mqueue.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
mutex.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
nsem.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
ostest_main.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
ostest.h ostest: Introduce basic setjmp/longjmp test 2022-03-01 12:03:31 +08:00
posixtimer.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
prioinherit.c apps: getpid should return process id not thread id 2022-11-17 17:58:45 +08:00
pthread_cleanup.c Fix the minor style issue 2022-10-16 19:07:16 +02:00
pthread_rwlock_cancel.c Fix the minor style issue 2022-10-16 19:07:16 +02:00
pthread_rwlock.c Fix the minor style issue 2022-10-16 19:07:16 +02:00
restart.c ostest: reset g_restartstep when test case restart 2022-11-16 00:07:38 +08:00
rmutex.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
robust.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
roundrobin.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
sem.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
semtimed.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
setjmp.c ostest: Introduce basic setjmp/longjmp test 2022-03-01 12:03:31 +08:00
setvbuf.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
sigev_thread.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
sighand.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
signest.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
sigprocmask.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
specific.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
sporadic2.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
sporadic.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
suspend.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
timedmqueue.c Fix the minor style issue 2022-10-16 19:07:16 +02:00
timedmutex.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
timedwait.c apps: getpid should return process id not thread id 2022-11-17 17:58:45 +08:00
tls.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
vfork.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00
waitpid.c testing: ostest: Add ASSERT in case of errors 2022-10-16 13:24:50 +08:00