From 42a42143a6cb13a0ce3c8ff7f8fa2f20f9d8412c Mon Sep 17 00:00:00 2001 From: Fluffy <65877598+FluffyGhoster@users.noreply.github.com> Date: Thu, 10 Oct 2024 18:58:25 +0200 Subject: [PATCH] Fix compilation (#20028) Fixed compilation, forgot that var is only available if TESTING is defined --- code/unit_tests/map_tests.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/unit_tests/map_tests.dm b/code/unit_tests/map_tests.dm index 190fde52a98..f749e262624 100644 --- a/code/unit_tests/map_tests.dm +++ b/code/unit_tests/map_tests.dm @@ -349,12 +349,21 @@ /datum/unit_test/map_test/no_dirty_vars/start_test() var/test_status +#if defined(TESTING) + if(length(GLOB.dirty_vars)) test_status = TEST_FAIL("There are dirty vars in the map! Read the logs above!") TEST_DEBUG(json_encode(GLOB.dirty_vars)) else test_status = TEST_PASS("No dirty vars in the map.") +#else + + test_status = TEST_FAIL("This test was run without the TESTING define set, which isn't supported") + +#endif + + return test_status #undef SUCCESS