From e4b6fedfb96c8796e92f558b281e0dbdab5f5b66 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 27 Jun 2025 12:18:45 +0200 Subject: tester: simplify adding test files --- hyprtester/src/tests/main/workspaces.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hyprtester/src/tests/main/workspaces.cpp') diff --git a/hyprtester/src/tests/main/workspaces.cpp b/hyprtester/src/tests/main/workspaces.cpp index ccacff28..96efacfa 100644 --- a/hyprtester/src/tests/main/workspaces.cpp +++ b/hyprtester/src/tests/main/workspaces.cpp @@ -18,7 +18,7 @@ using namespace Hyprutils::Memory; #define UP CUniquePointer #define SP CSharedPointer -bool testWorkspaces() { +static bool test() { NLog::log("{}Testing workspaces", Colors::GREEN); // test on workspace "window" @@ -347,3 +347,5 @@ bool testWorkspaces() { return !ret; } + +REGISTER_TEST_FN(test) -- cgit v1.2.3