Skip to content

Commit

Permalink
[FIX] tmp_directory snippet has no main()
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Oct 28, 2024
1 parent 8ef3a7c commit 9599cd9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/snippet/test/tmp_directory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
// SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: CC0-1.0

#include <gtest/gtest.h> // for Test, AssertionResult, TestInfo, EXPECT_TRUE, Message, TEST, TestPar...

#include <filesystem> // for remove
#include <fstream> // for char_traits, operator<<, basic_ostream, ofstream

#include <hibf/test/sandboxed_path.hpp> // for operator/, sandboxed_path
#include <hibf/test/tmp_directory.hpp> // for tmp_directory

TEST(snippet_tmp_directory, tmp_directory_)
int main()
{
// create a directory folder
seqan::hibf::test::tmp_directory tmp{};
Expand All @@ -24,6 +22,6 @@ TEST(snippet_tmp_directory, tmp_directory_)
std::filesystem::remove(tmp.path() / "somefile.txt");
}

// check that everything was cleanup properly
EXPECT_TRUE(tmp.empty());
// check that everything was cleaned up properly
assert(tmp.empty());
}

0 comments on commit 9599cd9

Please sign in to comment.