summaryrefslogtreecommitdiff
path: root/hyprtester/src/tests/main/window.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-06-27 12:18:45 +0200
committerVaxry <vaxry@vaxry.net>2025-06-27 12:18:45 +0200
commite4b6fedfb96c8796e92f558b281e0dbdab5f5b66 (patch)
tree15d5f9c597ab6d8b1cb8004007054c977abdfe66 /hyprtester/src/tests/main/window.cpp
parent1fc7e80bdb112e9b5b06287d19c85d6e6d2cc1d5 (diff)
tester: simplify adding test files
Diffstat (limited to 'hyprtester/src/tests/main/window.cpp')
-rw-r--r--hyprtester/src/tests/main/window.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/hyprtester/src/tests/main/window.cpp b/hyprtester/src/tests/main/window.cpp
index 4eecd68d..d79e6155 100644
--- a/hyprtester/src/tests/main/window.cpp
+++ b/hyprtester/src/tests/main/window.cpp
@@ -18,7 +18,7 @@ using namespace Hyprutils::Memory;
#define UP CUniquePointer
#define SP CSharedPointer
-bool testWindows() {
+static bool test() {
NLog::log("{}Testing windows", Colors::GREEN);
// test on workspace "window"
@@ -94,3 +94,5 @@ bool testWindows() {
return !ret;
}
+
+REGISTER_TEST_FN(test)