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:
Xi Ruoyao
2026-03-30 14:56:09 -03:00
committed by Adhemerval Zanella
parent 4b73af327e
commit 7cc1f7683b
+4
View File
@@ -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>