summaryrefslogtreecommitdiff
path: root/test/nptl/tst-clock2.c
diff options
context:
space:
mode:
authorFilippo Arcidiacono <filippo.arcidiacono@st.com>2011-05-02 12:59:18 +0200
committerCarmelo Amoroso <carmelo.amoroso@st.com>2011-05-02 17:52:50 +0200
commiteba2360222e8e8b9218942e25ef12664bc153f2e (patch)
treeaa86d1194ed1ce4cbfed769b973e7cc375bfecbb /test/nptl/tst-clock2.c
parented9977bf65b608ffe9772f1cc4809fe335f44d57 (diff)
test_nptl: fix expected result for tst-clock2 test
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>
Diffstat (limited to 'test/nptl/tst-clock2.c')
-rw-r--r--test/nptl/tst-clock2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/nptl/tst-clock2.c b/test/nptl/tst-clock2.c
index 49a769bf4..bca40956e 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