usleep tests: Avoid failure due to known Cygwin 3.5.3 bug.
[gnulib.git] / tests / test-fenv-except-trapping-2.sh
blobd51197feb91bcd3ad7dd58394abf87282ed20dce
1 #!/bin/sh
3 # Test of turning floating-point exceptions into traps (signals).
5 final_rc=0
7 for operation in 1 2 3 4 5 6 7 8 9; do
8 for procedure in p q r s; do
9 for type in f d l; do
10 ${CHECKER} ./test-fenv-except-trapping-2${EXEEXT} $operation $procedure $type
11 rc=$?
12 if test $rc = 77; then
13 if test $final_rc = 0; then
14 final_rc=77
16 else
17 if test $procedure = s; then
18 if test $rc != 0; then
19 echo "Failed (got a trap): ./test-fenv-except-trapping-2 $operation $procedure $type" 1>&2
20 final_rc=1
22 else
23 if test $rc = 0; then
24 echo "Failed (got no trap): ./test-fenv-except-trapping-2 $operation $procedure $type" 1>&2
25 final_rc=1
29 done
30 done
31 done
33 exit $final_rc