Skip to content

Commit 61e32b7

Browse files
committed
refactor: typo
Signed-off-by: Oskar Hubert Weber <[email protected]>
1 parent 0d16e5d commit 61e32b7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

utils/utils/include/utils/utils_gtest_helper.hpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
#include <gtest/gtest.h>
1010
#include <level_zero/ze_api.h>
1111

12-
class LztGtestSkipExectuionException : public std::runtime_error {
12+
class LztGtestSkipExecutionException : public std::runtime_error {
1313
public:
14-
explicit LztGtestSkipExectuionException(const std::string &message)
14+
explicit LztGtestSkipExecutionException(const std::string &message)
1515
: std::runtime_error(message) {}
1616
};
1717
namespace {
@@ -24,7 +24,7 @@ template <size_t N> constexpr size_t string_length(const char (&)[N]) {
2424
const auto lzt_assert_ze_result_success_macro = val; \
2525
if (lzt_assert_ze_result_success_macro == \
2626
ZE_RESULT_ERROR_UNSUPPORTED_VERSION) { \
27-
throw LztGtestSkipExectuionException("Unsupported API version"); \
27+
throw LztGtestSkipExecutionException("Unsupported API version"); \
2828
} \
2929
ASSERT_EQ(ZE_RESULT_SUCCESS, lzt_assert_ze_result_success_macro) \
3030
<< " --> " << #val; \
@@ -35,7 +35,7 @@ template <size_t N> constexpr size_t string_length(const char (&)[N]) {
3535
const auto lzt_expect_ze_result_success_macro = val; \
3636
if (lzt_expect_ze_result_success_macro == \
3737
ZE_RESULT_ERROR_UNSUPPORTED_VERSION) { \
38-
throw LztGtestSkipExectuionException("Unsupported API version"); \
38+
throw LztGtestSkipExecutionException("Unsupported API version"); \
3939
} \
4040
EXPECT_EQ(ZE_RESULT_SUCCESS, lzt_expect_ze_result_success_macro) \
4141
<< " --> " << #val; \
@@ -73,7 +73,7 @@ template <size_t N> constexpr size_t string_length(const char (&)[N]) {
7373
GTEST_TEST(test_suite_name, test_name) { \
7474
try { \
7575
LZT_BODY_##test_suite_name##_##test_name(); \
76-
} catch (const LztGtestSkipExectuionException &e) { \
76+
} catch (const LztGtestSkipExecutionException &e) { \
7777
GTEST_SKIP() << e.what(); \
7878
} \
7979
} \
@@ -87,14 +87,14 @@ template <size_t N> constexpr size_t string_length(const char (&)[N]) {
8787
static void SetUpTestSuite() { \
8888
try { \
8989
test_suite_name::SetUpTestSuite(); \
90-
} catch (const LztGtestSkipExectuionException &e) { \
90+
} catch (const LztGtestSkipExecutionException &e) { \
9191
GTEST_SKIP() << e.what(); \
9292
} \
9393
} \
9494
static void TearDownTestSuite() { \
9595
try { \
9696
test_suite_name::TearDownTestSuite(); \
97-
} catch (const LztGtestSkipExectuionException &e) { \
97+
} catch (const LztGtestSkipExecutionException &e) { \
9898
GTEST_SKIP() << e.what(); \
9999
} \
100100
} \
@@ -105,15 +105,15 @@ template <size_t N> constexpr size_t string_length(const char (&)[N]) {
105105
_helper)::SetUp() { \
106106
try { \
107107
test_suite_name::SetUp(); \
108-
} catch (const LztGtestSkipExectuionException &e) { \
108+
} catch (const LztGtestSkipExecutionException &e) { \
109109
GTEST_SKIP() << e.what(); \
110110
} \
111111
} \
112112
void LZT_CONCATENATE(GTEST_TEST_CLASS_NAME_(test_suite_name, test_name), \
113113
_helper)::TearDown() { \
114114
try { \
115115
test_suite_name::TearDown(); \
116-
} catch (const LztGtestSkipExectuionException &e) { \
116+
} catch (const LztGtestSkipExecutionException &e) { \
117117
GTEST_SKIP() << e.what(); \
118118
} \
119119
}
@@ -151,7 +151,7 @@ template <size_t N> constexpr size_t string_length(const char (&)[N]) {
151151
void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody() { \
152152
try { \
153153
LztTestBodyHelper(); \
154-
} catch (const LztGtestSkipExectuionException &e) { \
154+
} catch (const LztGtestSkipExecutionException &e) { \
155155
GTEST_SKIP() << e.what(); \
156156
} \
157157
} \
@@ -198,7 +198,7 @@ template <size_t N> constexpr size_t string_length(const char (&)[N]) {
198198
void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody() { \
199199
try { \
200200
LztTestBodyHelper(); \
201-
} catch (const LztGtestSkipExectuionException &e) { \
201+
} catch (const LztGtestSkipExecutionException &e) { \
202202
GTEST_SKIP() << e.what(); \
203203
} \
204204
} \

0 commit comments

Comments
 (0)