From b0a908d97d8b89a95c1dea83fd55fc226930eead Mon Sep 17 00:00:00 2001 From: Tyler Karaszewski Date: Wed, 24 Jul 2024 15:27:18 -0700 Subject: [PATCH] Commit code-only changes for clang support --- test/clustertest/tests/BadCommandTest.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/clustertest/tests/BadCommandTest.cpp b/test/clustertest/tests/BadCommandTest.cpp index 3e31aaf34..9e5ce42a6 100644 --- a/test/clustertest/tests/BadCommandTest.cpp +++ b/test/clustertest/tests/BadCommandTest.cpp @@ -2,8 +2,9 @@ #include struct BadCommandTest : tpunit::TestFixture { - BadCommandTest() - : tpunit::TestFixture("BadCommand", TEST(BadCommandTest::test)) { } + BadCommandTest() : tpunit::TestFixture("BadCommand") { + registerTests(TEST(BadCommandTest::test)); + } void test() { @@ -46,7 +47,7 @@ struct BadCommandTest : tpunit::TestFixture { // This tests cases where keeping leader alive isn't feasible. bool testFailed = false; for (auto commandName : {"generatesegfaultpeek", "generateassertpeek", "generatesegfaultprocess"}) { - + // Create the command with the current userID. userID++; SData command(commandName);