testcase: fix a compilation error
authorEunBong Song <eunb.song@samsung.com>
Thu, 13 Apr 2017 06:02:12 +0000 (15:02 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:20 +0000 (12:02 +0900)
This patch fixes a compilation error below:

CC: le_tc/kernel/tc_pthread.c
    le_tc/kernel/tc_pthread.c: In function 'tc_pthread_pthread_take_give_semaphore':
    le_tc/kernel/tc_pthread.c:898:12: error: too few arguments to function 'pthread_takesemaphore'
      ret_chk = pthread_takesemaphore(&sem);

Change-Id: Id713905644352a00f84f17e7b16e07f22d2f44bb
Signed-off-by: EunBong Song <eunb.song@samsung.com>
apps/examples/testcase/le_tc/kernel/tc_pthread.c

index 75a4603..d03772e 100644 (file)
@@ -895,7 +895,7 @@ static void tc_pthread_pthread_take_give_semaphore(void)
        sem_t sem;
        sem_init(&sem, 0, VAL_THREE);
 
-       ret_chk = pthread_takesemaphore(&sem);
+       ret_chk = pthread_takesemaphore(&sem, false);
        TC_ASSERT_EQ("pthread_takesemaphore", ret_chk, OK);
 
        sem_getvalue(&sem, &get_value);