Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed May 5, 2024
1 parent 845e803 commit 0a5aaad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion OdbDesignTests/CrossPlatformTests.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#include <gtest/gtest.h>
#include "CrossPlatform.h"
#include <ctime>
#include "Fixtures/TestDataFixture.h"
#include <string>
#include <filesystem>

using namespace std::filesystem;
using namespace Odb::Test::Fixtures;
Expand All @@ -15,7 +18,7 @@ namespace Odb::Test
ASSERT_EQ(value.size(), 0U);
ASSERT_TRUE(CrossPlatform::getenv_safe(ODB_TEST_DATA_DIR_ENV_NAME, value));
ASSERT_STRNE(value.c_str(), "");
ASSERT_STREQ(value.c_str(), m_testDataDir.string().c_str());
ASSERT_STREQ(path(value).c_str(), m_testDataDir.c_str());
}

TEST_F(TestDataFixture, Test_CrossPlatform_GetEnvSafe_VariableDoesntExist)
Expand Down

0 comments on commit 0a5aaad

Please sign in to comment.