OSDN Git Service

test_nptl: fix expected result for tst-clock2 test
authorFilippo Arcidiacono <filippo.arcidiacono@st.com>
Mon, 2 May 2011 10:59:18 +0000 (12:59 +0200)
committerCarmelo Amoroso <carmelo.amoroso@st.com>
Mon, 2 May 2011 15:52:50 +0000 (17:52 +0200)
tst-clock2 should return 0 when _SC_THREAD_CPUTIME option isn't
available, instead of treating it as an error.
Further set the expected ret value as 0 avoiding to hide any real failures
in case of THREAD_CPUTIME feature available.

Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
test/nptl/Makefile.in
test/nptl/tst-clock2.c

index b6a279e..6671569 100644 (file)
@@ -221,7 +221,6 @@ OPTS_tst-cancel7 = --command ./tst-cancel7
 OPTS_tst-mqueue7 = -- ./tst-mqueue7
 OPTS_tst-exec4 = ./tst-exec4
 
-RET_tst-clock2 := 1
 RET_tst-cputimer1 := 1
 RET_tst-cputimer2 := 1
 RET_tst-cputimer3 := 1
index 49a769b..bca4095 100644 (file)
@@ -62,7 +62,7 @@ do_test (void)
   if (sysconf (_SC_THREAD_CPUTIME) < 0)
     {
       puts ("_POSIX_THREAD_CPUTIME option not available");
-      return 1;
+      return 0;
     }
 # endif