mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-04-27 20:03:52 +00:00
chore(error): support different era args for SErrDisplayError
This commit is contained in:
parent
b69feaca30
commit
b292aabac0
6 changed files with 19 additions and 9 deletions
|
|
@ -1,14 +1,13 @@
|
|||
#include "test/Test.hpp"
|
||||
#include "storm/Error.hpp"
|
||||
|
||||
TEST_CASE("SErrDisplayError", "[event]") {
|
||||
TEST_CASE("SErrDisplayError", "[error]") {
|
||||
SECTION("does nothing if errors are suppressed") {
|
||||
uint32_t errorcode = GENERATE(0, STORM_ERROR_ASSERTION, ERROR_INVALID_PARAMETER);
|
||||
int32_t recoverable = GENERATE(0, 1);
|
||||
uint32_t exitcode = GENERATE(0, 1);
|
||||
uint32_t unkarg = GENERATE(0, 1, 0x11111111);
|
||||
|
||||
SErrSuppressErrors(1);
|
||||
CHECK_FALSE(SErrDisplayError(errorcode, nullptr, 0, nullptr, recoverable, exitcode, unkarg));
|
||||
CHECK_FALSE(SErrDisplayError(errorcode, nullptr, 0, nullptr, recoverable, exitcode));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue