Skip to content

Commit

Permalink
fix cpp test template
Browse files Browse the repository at this point in the history
  • Loading branch information
ksentak committed Jul 17, 2024
1 parent c1fb3d1 commit 4f5f8e1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(error));
Expand Down
2 changes: 1 addition & 1 deletion src/sdks/discovery/src/cpp/sdk/cpptest/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void RunAllTests() {
if (DiscoverySDKTest::WaitOnConnectionReady()) {
// Add tests here

// runTest(DiscoverySDKTest::TestName, "TestName");
runTest(DiscoverySDKTest::SampleTest, "SampleTest");

if (allTestsPassed) {
cout << "============================" << endl;
Expand Down
1 change: 0 additions & 1 deletion src/sdks/discovery/src/cpp/sdk/cpptest/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4f5f8e1

Please sign in to comment.