diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-04-14 10:01:05 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-04-14 11:17:10 -0500 |
commit | fc0756e8d9caf1155e2df1ad4a1282619c6668f1 (patch) | |
tree | bf4aa3a51cac86cfb220a6d34ba7538d60fb780e /testsuites/psxtests/psxsem01/init.c | |
parent | or1ksim: Fix bug at UART driver. (diff) | |
download | rtems-fc0756e8d9caf1155e2df1ad4a1282619c6668f1.tar.bz2 |
Add test assertion for allocator mutex being unlocked
The Allocator Mutex should not be locked outside a tested
service call. In an SMP test or heavily multithreaded test,
this is possible since another thread could have the lock
for an extended period of time but this is not the norm
for the tests.
updates 2319.
Diffstat (limited to 'testsuites/psxtests/psxsem01/init.c')
-rw-r--r-- | testsuites/psxtests/psxsem01/init.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/testsuites/psxtests/psxsem01/init.c b/testsuites/psxtests/psxsem01/init.c index ed741bda11..f377a4e68b 100644 --- a/testsuites/psxtests/psxsem01/init.c +++ b/testsuites/psxtests/psxsem01/init.c @@ -25,16 +25,6 @@ const char rtems_test_name[] = "PSXSEM 1"; /* forward declarations to avoid warnings */ void *POSIX_Init(void *argument); -#define fatal_posix_sem( _ptr, _msg ) \ - if ( (_ptr != SEM_FAILED) ) { \ - check_dispatch_disable_level( 0 ); \ - printf( "\n%s FAILED -- expected (-1) got (%p - %d/%s)\n", \ - (_msg), _ptr, errno, strerror(errno) ); \ - FLUSH_OUTPUT(); \ - rtems_test_exit( -1 ); \ - } - - #define MAX_SEMS 10 void *POSIX_Init( |