We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9d4c7a commit ea92456Copy full SHA for ea92456
1 file changed
api/expects
@@ -34,16 +34,19 @@
34
#include <os.hpp>
35
inline void __expect_emit_failure(std::string_view msg, std::string_view panic_text) {
36
#ifndef UNITTESTS
37
+
38
#ifdef INCLUDEOS_SMP_ENABLE
39
SMP::global_lock();
40
#endif
41
42
std::fprintf(stderr, "%.*s\n", int(msg.size()), msg.data());
43
fflush(NULL);
44
45
SMP::global_unlock();
46
47
os::panic(std::string(panic_text).c_str());
-#else // TEST
48
49
+#else // UNITTESTS
50
(void) panic_text;
51
// throw here to allow tests to capture the error
52
#include <stdexcept>
0 commit comments