Skip to content

Commit 786b378

Browse files
committed
Fix Issue #193
1 parent 2737b67 commit 786b378

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/LoadMaterialPropertyTest.cxx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,13 @@ static void test7(const std::string& library) {
267267
auto s = OutputStatus{};
268268
s.status = 2;
269269
mp.fct(&s, &T, 1, op);
270-
check(s.status == -3, "invalid output status");
270+
if constexpr (math_errhandling & MATH_ERRNO) {
271+
check(s.status == -3,
272+
"invalid output status ('" + std::to_string(s.status) + "')");
273+
} else {
274+
check(s.status == 0,
275+
"invalid output status ('" + std::to_string(s.status) + "')");
276+
}
271277
}
272278
}
273279

0 commit comments

Comments
 (0)