From 9599cd9b45cf64780b35d43f2895641a84897e83 Mon Sep 17 00:00:00 2001 From: Enrico Seiler Date: Mon, 28 Oct 2024 16:30:38 +0100 Subject: [PATCH] [FIX] tmp_directory snippet has no main() --- test/snippet/test/tmp_directory.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/snippet/test/tmp_directory.cpp b/test/snippet/test/tmp_directory.cpp index c3d384e7..962cc1ae 100644 --- a/test/snippet/test/tmp_directory.cpp +++ b/test/snippet/test/tmp_directory.cpp @@ -2,15 +2,13 @@ // SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik // SPDX-License-Identifier: CC0-1.0 -#include // for Test, AssertionResult, TestInfo, EXPECT_TRUE, Message, TEST, TestPar... - #include // for remove #include // for char_traits, operator<<, basic_ostream, ofstream #include // for operator/, sandboxed_path #include // for tmp_directory -TEST(snippet_tmp_directory, tmp_directory_) +int main() { // create a directory folder seqan::hibf::test::tmp_directory tmp{}; @@ -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()); }