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>
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
if (sysconf (_SC_THREAD_CPUTIME) < 0)
{
puts ("_POSIX_THREAD_CPUTIME option not available");
- return 1;
+ return 0;
}
# endif