tests/fault: skip SIGFPE check with ARM softfp ABI
An ugly work-around to pass the test on armv6l (e.g. Raspberry PI Zero targeting the softfp floating-point ABI). Signed-off-by: Philippe Gerum <rpm@xenomai.org>
This commit is contained in:
parent
942ff7464f
commit
717ebf9212
|
@ -54,6 +54,7 @@ int main(int argc, char *argv[])
|
|||
*blunder = 0;
|
||||
}
|
||||
|
||||
#ifndef __SOFTFP__ /* Right, quite ugly. */
|
||||
if (!setjmp(recover)) {
|
||||
/*
|
||||
* If we can't enable fp exceptions, skip the divzero
|
||||
|
@ -64,6 +65,7 @@ int main(int argc, char *argv[])
|
|||
zero = 127.0 / zero;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
__Texpr_assert(received == expected_sigs);
|
||||
|
||||
|
|
Loading…
Reference in New Issue