From 717ebf9212d62d3649fe338091c6cf41164082ef Mon Sep 17 00:00:00 2001 From: Philippe Gerum Date: Wed, 27 May 2020 19:13:21 +0200 Subject: [PATCH] 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 --- tests/fault.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/fault.c b/tests/fault.c index f463426..db4636b 100644 --- a/tests/fault.c +++ b/tests/fault.c @@ -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);