[git commit future] test_nptl: fix expected result for tst-clock2 test

Filippo Arcidiacono filippo.arcidiacono at st.com
Tue May 3 15:29:35 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=eba2360222e8e8b9218942e25ef12664bc153f2e
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

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 at st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>
---
 test/nptl/Makefile.in  |    1 -
 test/nptl/tst-clock2.c |    2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/test/nptl/Makefile.in b/test/nptl/Makefile.in
index b6a279e..6671569 100644
--- a/test/nptl/Makefile.in
+++ b/test/nptl/Makefile.in
@@ -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
diff --git a/test/nptl/tst-clock2.c b/test/nptl/tst-clock2.c
index 49a769b..bca4095 100644
--- a/test/nptl/tst-clock2.c
+++ b/test/nptl/tst-clock2.c
@@ -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
 
-- 
1.7.3.4



More information about the uClibc-cvs mailing list