9
9
#include < gtest/gtest.h>
10
10
#include < level_zero/ze_api.h>
11
11
12
- class LztGtestSkipExectuionException : public std ::runtime_error {
12
+ class LztGtestSkipExecutionException : public std ::runtime_error {
13
13
public:
14
- explicit LztGtestSkipExectuionException (const std::string &message)
14
+ explicit LztGtestSkipExecutionException (const std::string &message)
15
15
: std::runtime_error(message) {}
16
16
};
17
17
namespace {
@@ -24,7 +24,7 @@ template <size_t N> constexpr size_t string_length(const char (&)[N]) {
24
24
const auto lzt_assert_ze_result_success_macro = val; \
25
25
if (lzt_assert_ze_result_success_macro == \
26
26
ZE_RESULT_ERROR_UNSUPPORTED_VERSION) { \
27
- throw LztGtestSkipExectuionException (" Unsupported API version" ); \
27
+ throw LztGtestSkipExecutionException (" Unsupported API version" ); \
28
28
} \
29
29
ASSERT_EQ (ZE_RESULT_SUCCESS, lzt_assert_ze_result_success_macro) \
30
30
<< " --> " << #val; \
@@ -35,7 +35,7 @@ template <size_t N> constexpr size_t string_length(const char (&)[N]) {
35
35
const auto lzt_expect_ze_result_success_macro = val; \
36
36
if (lzt_expect_ze_result_success_macro == \
37
37
ZE_RESULT_ERROR_UNSUPPORTED_VERSION) { \
38
- throw LztGtestSkipExectuionException (" Unsupported API version" ); \
38
+ throw LztGtestSkipExecutionException (" Unsupported API version" ); \
39
39
} \
40
40
EXPECT_EQ (ZE_RESULT_SUCCESS, lzt_expect_ze_result_success_macro) \
41
41
<< " --> " << #val; \
@@ -73,7 +73,7 @@ template <size_t N> constexpr size_t string_length(const char (&)[N]) {
73
73
GTEST_TEST (test_suite_name, test_name) { \
74
74
try { \
75
75
LZT_BODY_##test_suite_name##_##test_name (); \
76
- } catch (const LztGtestSkipExectuionException &e) { \
76
+ } catch (const LztGtestSkipExecutionException &e) { \
77
77
GTEST_SKIP () << e.what (); \
78
78
} \
79
79
} \
@@ -87,14 +87,14 @@ template <size_t N> constexpr size_t string_length(const char (&)[N]) {
87
87
static void SetUpTestSuite () { \
88
88
try { \
89
89
test_suite_name::SetUpTestSuite (); \
90
- } catch (const LztGtestSkipExectuionException &e) { \
90
+ } catch (const LztGtestSkipExecutionException &e) { \
91
91
GTEST_SKIP () << e.what (); \
92
92
} \
93
93
} \
94
94
static void TearDownTestSuite () { \
95
95
try { \
96
96
test_suite_name::TearDownTestSuite (); \
97
- } catch (const LztGtestSkipExectuionException &e) { \
97
+ } catch (const LztGtestSkipExecutionException &e) { \
98
98
GTEST_SKIP () << e.what (); \
99
99
} \
100
100
} \
@@ -105,15 +105,15 @@ template <size_t N> constexpr size_t string_length(const char (&)[N]) {
105
105
_helper)::SetUp() { \
106
106
try { \
107
107
test_suite_name::SetUp (); \
108
- } catch (const LztGtestSkipExectuionException &e) { \
108
+ } catch (const LztGtestSkipExecutionException &e) { \
109
109
GTEST_SKIP () << e.what (); \
110
110
} \
111
111
} \
112
112
void LZT_CONCATENATE (GTEST_TEST_CLASS_NAME_(test_suite_name, test_name), \
113
113
_helper)::TearDown() { \
114
114
try { \
115
115
test_suite_name::TearDown (); \
116
- } catch (const LztGtestSkipExectuionException &e) { \
116
+ } catch (const LztGtestSkipExecutionException &e) { \
117
117
GTEST_SKIP () << e.what (); \
118
118
} \
119
119
}
@@ -151,7 +151,7 @@ template <size_t N> constexpr size_t string_length(const char (&)[N]) {
151
151
void GTEST_TEST_CLASS_NAME_ (test_suite_name, test_name)::TestBody() { \
152
152
try { \
153
153
LztTestBodyHelper (); \
154
- } catch (const LztGtestSkipExectuionException &e) { \
154
+ } catch (const LztGtestSkipExecutionException &e) { \
155
155
GTEST_SKIP () << e.what (); \
156
156
} \
157
157
} \
@@ -198,7 +198,7 @@ template <size_t N> constexpr size_t string_length(const char (&)[N]) {
198
198
void GTEST_TEST_CLASS_NAME_ (test_suite_name, test_name)::TestBody() { \
199
199
try { \
200
200
LztTestBodyHelper (); \
201
- } catch (const LztGtestSkipExectuionException &e) { \
201
+ } catch (const LztGtestSkipExecutionException &e) { \
202
202
GTEST_SKIP () << e.what (); \
203
203
} \
204
204
} \
0 commit comments