Skip to content

Commit 2e8482b

Browse files
committed
Skip debug verify-fp NaN warning test
* Skip debug verify-fp NaN warning test test_nan expected verify_fp to emit a NaN warning and continue, which is the release-mode behavior when native asserts are compiled out. With --warp-debug, verify_fp asserts as soon as the invalid division is detected, before the warning path this test checks. Skip the NaN-warning variant in debug mode while preserving the finite checks and release-mode coverage. Signed-off-by: Eric Shi <ershi@nvidia.com> Approved-by: Eric Shi <ershi@nvidia.com> See merge request omniverse/warp!2492
1 parent 9f8343d commit 2e8482b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

warp/tests/test_verify_fp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def nan_kernel(foos: wp.array(dtype=TestStruct)):
5252

5353

5454
def test_nan(test, device):
55+
if wp.config.mode == "debug":
56+
test.skipTest("verify_fp asserts before NaN warning checks in debug mode")
57+
5558
if sys.platform == "win32":
5659
test.skipTest("Skipping test on Windows due to unreliable stdout capture")
5760

0 commit comments

Comments
 (0)