From 4f5f8e105c63b5e8f7c4a9d9d868b55efcdf690e Mon Sep 17 00:00:00 2001 From: Keaton Sentak Date: Wed, 17 Jul 2024 11:15:21 -0400 Subject: [PATCH] fix cpp test template --- src/sdks/discovery/src/cpp/sdk/cpptest/DiscoverySDKTest.cpp | 2 +- src/sdks/discovery/src/cpp/sdk/cpptest/Main.cpp | 2 +- src/sdks/discovery/src/cpp/sdk/cpptest/build.sh | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sdks/discovery/src/cpp/sdk/cpptest/DiscoverySDKTest.cpp b/src/sdks/discovery/src/cpp/sdk/cpptest/DiscoverySDKTest.cpp index 9a0dad7bf..27fe67244 100644 --- a/src/sdks/discovery/src/cpp/sdk/cpptest/DiscoverySDKTest.cpp +++ b/src/sdks/discovery/src/cpp/sdk/cpptest/DiscoverySDKTest.cpp @@ -93,7 +93,7 @@ void DiscoverySDKTest::SampleTest() { Firebolt::Error error = Firebolt::Error::None; - if (error === Firebolt::Error::None) { + if (error == Firebolt::Error::None) { cout << "Sample Test Passed!" << endl; } else { std::string errorMessage = "Error: " + std::to_string(static_cast(error)); diff --git a/src/sdks/discovery/src/cpp/sdk/cpptest/Main.cpp b/src/sdks/discovery/src/cpp/sdk/cpptest/Main.cpp index 8e56bae39..26e2b5dc6 100644 --- a/src/sdks/discovery/src/cpp/sdk/cpptest/Main.cpp +++ b/src/sdks/discovery/src/cpp/sdk/cpptest/Main.cpp @@ -44,7 +44,7 @@ void RunAllTests() { if (DiscoverySDKTest::WaitOnConnectionReady()) { // Add tests here - // runTest(DiscoverySDKTest::TestName, "TestName"); + runTest(DiscoverySDKTest::SampleTest, "SampleTest"); if (allTestsPassed) { cout << "============================" << endl; diff --git a/src/sdks/discovery/src/cpp/sdk/cpptest/build.sh b/src/sdks/discovery/src/cpp/sdk/cpptest/build.sh index b404a78f3..4db39cbe8 100644 --- a/src/sdks/discovery/src/cpp/sdk/cpptest/build.sh +++ b/src/sdks/discovery/src/cpp/sdk/cpptest/build.sh @@ -37,5 +37,4 @@ echo "${TestPath}" echo "FireboltPath" echo ${FireboltPath} cmake -B${TestPath}/build -S${TestPath} -DSYSROOT_PATH=${SysrootPath} -DFIREBOLT_PATH=${FireboltPath} -# -DPOLYMORPHICS_METHODS=ON // Enable this to test cmake --build ${TestPath}/build