util: Abort on failing CHECK_NONFATAL in debug builds

This requires adjusting some tests to force exceptions over aborts, or
accept either exceptions or aborts.

Also, remove a fuzz test in integer.cpp that is mostly redundant with
the unit test added in the prior commit.
This commit is contained in:
MarcoFalke
2025-05-22 16:24:45 +02:00
parent fa0dc4bdff
commit fa37153288
5 changed files with 47 additions and 26 deletions

View File

@@ -255,9 +255,4 @@ FUZZ_TARGET(integer, .init = initialize_integer)
} catch (const std::ios_base::failure&) {
}
}
try {
CHECK_NONFATAL(b);
} catch (const NonFatalCheckError&) {
}
}