Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I53e9d8f3c654b4fe8d5fc5275984f6340f8bc872
if (!opt_disable_rseq && rseq_register_current_thread())
goto error;
if (!opt_disable_rseq && !rseq_validate_cpu_id()) {
- fprintf(stderr, "Error: cpu id getter unavailable\n");
- goto error;
+ printf_verbose("The rseq cpu id getter is unavailable\n");
+ goto no_rseq;
}
switch (opt_test) {
case 's':
ok $? "Running compare-twice test ${test_name}"
"$RSEQ_TESTS_BUILDDIR"/param_test_mm_cid "${args[@]}" -r ${REPS} -t ${NR_THREADS} "${EXTRA_ARGS[@]}"
- ok $? "Running mm_cid test ${test_name}"
+ res=$?
+ skip $(($res != 2 )) "Running mm_cid test ${test_name}" 1 || {
+ ok $res "Running mm_cid test ${test_name}"
+ }
"$RSEQ_TESTS_BUILDDIR"/param_test_mm_cid_compare_twice "${args[@]}" -r ${REPS} -t ${NR_THREADS} "${EXTRA_ARGS[@]}"
- ok $? "Running compare-twice mm_cid test ${test_name}"
+ res=$?
+ skip $(($res != 2)) "Running compare-twice mm_cid test ${test_name}" 1 || {
+ ok $res "Running compare-twice mm_cid test ${test_name}"
+ }
}
function do_tests()