summaryrefslogtreecommitdiffhomepage
path: root/dev/lib/tests
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-17 10:45:15 +0100
committerGitHub <noreply@github.com>2025-11-17 10:45:15 +0100
commit5abec5514a0745b8032d8c60f5752529e4a13eaa (patch)
treec91152ab4cc3a56fbb74d44dc801be5cb8ad3787 /dev/lib/tests
parentc6b7510cdb9350c4e129bfcd7959efc4daee9df6 (diff)
parent4700f4d91c342276cc2663f149ed7a8b4e8f3498 (diff)
Merge pull request #8 from amlel-el-mahrouss/developv1.0.45
release: Mojave
Diffstat (limited to 'dev/lib/tests')
-rw-r--r--dev/lib/tests/gtest.hpp2
-rw-r--r--dev/lib/tests/hpptest.hpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/dev/lib/tests/gtest.hpp b/dev/lib/tests/gtest.hpp
index 31ae5d7..b2e53c9 100644
--- a/dev/lib/tests/gtest.hpp
+++ b/dev/lib/tests/gtest.hpp
@@ -5,4 +5,6 @@
* Copyright 2025, Amlal El Mahrouss, licensed under the MIT license.
*/
+#pragma once
+
#include <gtest/gtest.h>
diff --git a/dev/lib/tests/hpptest.hpp b/dev/lib/tests/hpptest.hpp
index 5f78179..e32ac85 100644
--- a/dev/lib/tests/hpptest.hpp
+++ b/dev/lib/tests/hpptest.hpp
@@ -7,7 +7,6 @@
#pragma once
-#ifdef OCL_HPPTEST
namespace ocl::hpptest
{
typedef bool condition_type;
@@ -15,7 +14,8 @@ namespace ocl::hpptest
template <condition_type expr = true>
consteval inline void must_pass()
{
+#ifdef OCL_HPPTEST
OCL_HPPTEST_ASSERT(expr);
+#endif
}
} // namespace ocl::hpptest
-#endif