diff --git a/modules/rostests/apitests/compiler/pseh.c b/modules/rostests/apitests/compiler/pseh.c index 1b3577fd90d..1e36c1c1bce 100644 --- a/modules/rostests/apitests/compiler/pseh.c +++ b/modules/rostests/apitests/compiler/pseh.c @@ -2425,7 +2425,12 @@ DEFINE_TEST(test_unvolatile) } _SEH2_END; + /* This works with a proper SEH implementation, but not with our hacked PSEH */ +#ifdef _USE_NATIVE_SEH return (val == 4); +#else + return (val == 4 || val == 3); +#endif } DEFINE_TEST(test_unvolatile_2)