From b138be2d86c6317d55a3ec3cbda53033d60d3af9 Mon Sep 17 00:00:00 2001
From: Davide Cavalca <davide@cavalca.name>
Date: Sun, 24 Oct 2021 22:21:31 -0700
Subject: [PATCH] tests: do not segfault on failure
---
src/tests/test.cpp | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/src/tests/test.cpp b/src/tests/test.cpp
index a81d701..e1cbeed 100644
--- a/src/tests/test.cpp
+++ b/src/tests/test.cpp
@@ -131,18 +131,5 @@ int main(int argc, char *argv[])
result = runTestFixtures(argc, argv);
}
- // did we have any failures?
- if (result != 0)
- {
- // the monstrosity below is a consequence of seemingly not being able to
- // report errors with exit codes under GitHub actions; for some reason exit
- // codes are not working but the code below does trigger a failure
- size_t i = 0;
- do
- {
- *((long *)i++) = 0xDEADBEEF;
- } while (rand() != rand());
- }
-
return result;
}