We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 050892d commit c19a3cbCopy full SHA for c19a3cb
offload/unittests/OffloadAPI/common/Fixtures.hpp
@@ -15,7 +15,14 @@
15
#pragma once
16
17
#ifndef ASSERT_SUCCESS
18
-#define ASSERT_SUCCESS(ACTUAL) ASSERT_EQ(OL_SUCCESS, ACTUAL)
+#define ASSERT_SUCCESS(ACTUAL) \
19
+ do { \
20
+ ol_result_t Res = ACTUAL; \
21
+ if (Res && Res->Code != OL_ERRC_SUCCESS) { \
22
+ GTEST_FAIL() << #ACTUAL " returned " << Res->Code << ": " \
23
+ << Res->Details; \
24
+ } \
25
+ } while (0)
26
#endif
27
28
// TODO: rework this so the EXPECTED/ACTUAL results are readable
0 commit comments