From 9abcf38b902100b45fd3c60c815965671b3c3981 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Fri, 10 Dec 2021 22:31:08 +0200 Subject: [PATCH] Update test_file_helper.cpp --- tests/test_file_helper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_file_helper.cpp b/tests/test_file_helper.cpp index a27b442f..c4487a1a 100644 --- a/tests/test_file_helper.cpp +++ b/tests/test_file_helper.cpp @@ -145,13 +145,13 @@ TEST_CASE("file_event_handlers", "[file_helper]") events.clear(); helper.close(); REQUIRE(events == std::vector{flags::before_close, flags::after_close}); - REQUIRE(file_contents(test_filename) == "after_open\nbefore_close\n"); + REQUIRE(file_contents(TEST_FILENAME) == "after_open\nbefore_close\n"); helper.reopen(true); events.clear(); } // make sure that the file_helper destrcutor calls the close callbacks if needed REQUIRE(events == std::vector{flags::before_close, flags::after_close}); - REQUIRE(file_contents(test_filename) == "after_open\nbefore_close\n"); + REQUIRE(file_contents(TEST_FILENAME) == "after_open\nbefore_close\n"); }