[PATCH 0/N] test-suite improvement - PASS/FAIL: initial patch

Richard Henderson rth@twiddle.net
Mon Sep 10 16:45:00 GMT 2012


On 09/10/2012 09:30 AM, Tomas Dohnalek wrote:
> +if [ ${test_rc} -eq 0 ]; then
> +    result="PASS"
> +else
> +    result="FAIL"
> +fi
> +
> +echo "${result}: ${test_name}" >> ${output}
> +exit ${test_rc}

Surely this is running the test twice.
Surely you actually want to save $? after running the test once.


r~



More information about the Libc-alpha mailing list