This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]