mirror of
git://sourceware.org/git/glibc.git
synced 2026-09-08 23:58:31 +08:00
testsuite: fix test-narrowing-trap failure on platforms where FE_INVALID is not defined
I didn't realize it can be undefined at all instead of simply unsupported :(. Signed-off-by: Xi Ruoyao <xry111@xry111.site> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
committed by
Adhemerval Zanella
parent
4b73af327e
commit
7cc1f7683b
@@ -26,6 +26,7 @@
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
#ifdef FE_INVALID
|
||||
pid_t pid;
|
||||
|
||||
if (!EXCEPTION_ENABLE_SUPPORTED (FE_INVALID))
|
||||
@@ -50,6 +51,9 @@ do_test (void)
|
||||
}
|
||||
|
||||
return 0;
|
||||
#else
|
||||
FAIL_UNSUPPORTED ("FE_INVALID is not defined");
|
||||
#endif
|
||||
}
|
||||
|
||||
#include <support/test-driver.c>
|
||||
|
||||
Reference in New Issue
Block a user