From 0d48bf354aac0eb4c75b928f30b73ebc0e94cbf2 Mon Sep 17 00:00:00 2001 From: nillerusr Date: Wed, 17 Aug 2022 14:28:41 +0300 Subject: [PATCH] unittests: add tslist tests to tier1test --- unittests/tier0test/tslisttests.cpp | 23 +++++++++++++++++++++++ unittests/tier0test/wscript | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 unittests/tier0test/tslisttests.cpp diff --git a/unittests/tier0test/tslisttests.cpp b/unittests/tier0test/tslisttests.cpp new file mode 100644 index 00000000..b2a701a3 --- /dev/null +++ b/unittests/tier0test/tslisttests.cpp @@ -0,0 +1,23 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= + +#include "tier0/tslist.h" +#include +#include +#if defined( _X360 ) +#include "xbox/xbox_win32stubs.h" +#endif + +#include "unitlib/unitlib.h" + +DEFINE_TESTSUITE( TSListTestSuite ) + +DEFINE_TESTCASE( TSListTest, TSListTestSuite ) +{ + RunTSListTests( 50000 ); + + RunTSQueueTests( 50000 ); +} diff --git a/unittests/tier0test/wscript b/unittests/tier0test/wscript index 7d72c07c..44471a12 100755 --- a/unittests/tier0test/wscript +++ b/unittests/tier0test/wscript @@ -14,7 +14,7 @@ def configure(conf): conf.define('TIER1TEST_EXPORTS', 1) def build(bld): - source = ['tier0test.cpp'] + source = ['tier0test.cpp', 'tslisttests.cpp'] includes = ['../../public', '../../public/tier0'] defines = [] libs = ['tier0','tier1','unitlib']