diff options
author | Yuji Mano <yuji.mano@am.sony.com> | 2009-06-15 17:15:47 -0700 |
---|---|---|
committer | Yuji Mano <yuji.mano@am.sony.com> | 2009-06-15 17:15:47 -0700 |
commit | e95ad810894c01373d11e74411f358d2605b4acd (patch) | |
tree | 0236a580f83868ac804eac4b81493fac92ba0736 | |
parent | 76209c467aeea31e36e32dce8d39c8b79bd11304 (diff) | |
download | mars-src-e95ad810894c01373d11e74411f358d2605b4acd.tar.gz |
tests: fix TFI_15_003
-rw-r--r-- | tests/TFI/TFI_15_003/host.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/TFI/TFI_15_003/host.c b/tests/TFI/TFI_15_003/host.c index 0b400ad..e0ec20a 100644 --- a/tests/TFI/TFI_15_003/host.c +++ b/tests/TFI/TFI_15_003/host.c @@ -73,20 +73,16 @@ int main(void) for (i = 0; i < TASK_COUNT; i++) pthread_create(&task_threads[i], NULL, task_thread_proc, NULL); - usleep(100000); - ret = mars_mutex_unlock(mutex); MARS_TEST_ASSERT_ERROR(ret, MARS_SUCCESS); - usleep(100000); - - MARS_TEST_ASSERT(lock_counter == TASK_COUNT); - for (i = 0; i < TASK_COUNT; i++) pthread_join(task_threads[i], NULL); ret = mars_mutex_destroy(mutex); MARS_TEST_ASSERT_ERROR(ret, MARS_SUCCESS); + MARS_TEST_ASSERT(lock_counter == TASK_COUNT); + return 0; } |