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:
Philippe Gerum 2020-05-27 19:13:21 +02:00
parent 942ff7464f
commit 717ebf9212
1 changed files with 2 additions and 0 deletions

View File

@ -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);