Skip to content

Commit

Permalink
Added better error detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed Aug 26, 2023
1 parent b0a956f commit 77ecaf3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/substrait/common/tests/IoTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,16 @@ class SaveAndLoadTestFixture : public ::testing::TestWithParam<PlanFileFormat> {
std::filesystem::path("my_temp_dir");

if (!std::filesystem::create_directory(testFileDirectory_)) {
std::cerr << "Failed to create temporary directory." << std::endl;
ASSERT_TRUE(false) << "Failed to create temporary directory.";
testFileDirectory_.clear();
}
}

void TearDown() override {
if (!testFileDirectory_.empty()) {
std::filesystem::remove_all(testFileDirectory_);
std::error_code err;
std::filesystem::remove_all(testFileDirectory_, err);
ASSERT_FALSE(err) << err.message();
}
}

Expand Down

0 comments on commit 77ecaf3

Please sign in to comment.