aboutsummaryrefslogtreecommitdiff
path: root/src/zencompute-test/zencompute-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencompute-test/zencompute-test.cpp')
-rw-r--r--src/zencompute-test/zencompute-test.cpp22
1 files changed, 3 insertions, 19 deletions
diff --git a/src/zencompute-test/zencompute-test.cpp b/src/zencompute-test/zencompute-test.cpp
index 237812e12..60aaeab1d 100644
--- a/src/zencompute-test/zencompute-test.cpp
+++ b/src/zencompute-test/zencompute-test.cpp
@@ -1,31 +1,15 @@
// Copyright Epic Games, Inc. All Rights Reserved.
#include <zencompute/zencompute.h>
-#include <zencore/filesystem.h>
-#include <zencore/logging.h>
-#include <zencore/zencore.h>
+#include <zencore/testing.h>
-#if ZEN_PLATFORM_LINUX || ZEN_PLATFORM_MAC
-# include <sys/time.h>
-# include <sys/resource.h>
-# include <zencore/except.h>
-#endif
-
-#if ZEN_WITH_TESTS
-# define ZEN_TEST_WITH_RUNNER 1
-# include <zencore/testing.h>
-#endif
+#include <zencore/memory/newdelete.h>
int
main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
{
#if ZEN_WITH_TESTS
- zen::zencompute_forcelinktests();
-
- zen::logging::InitializeLogging();
- zen::MaximizeOpenFileCount();
-
- return ZEN_RUN_TESTS(argc, argv);
+ return zen::testing::RunTestMain(argc, argv, "zencompute-test", zen::zencompute_forcelinktests);
#else
return 0;
#endif