Mercurial > irccd
diff tests/util/main.cpp @ 518:b557017ad3f0
Tests: unify test files for directory/file tests
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 27 Oct 2017 08:52:39 +0200 |
parents | 16b9ebfd3f08 |
children | e03521cf207b |
line wrap: on
line diff
--- a/tests/util/main.cpp Tue Oct 24 16:27:51 2017 +0200 +++ b/tests/util/main.cpp Fri Oct 27 08:52:39 2017 +0200 @@ -469,8 +469,8 @@ BOOST_AUTO_TEST_CASE(not_recursive) { - auto file1 = util::fs::find(CMAKE_CURRENT_BINARY_DIR "/root", "file-1.txt", false); - auto file2 = util::fs::find(CMAKE_CURRENT_BINARY_DIR "/root", "file-2.txt", false); + auto file1 = util::fs::find(TESTS_BINARY_DIR "/root", "file-1.txt", false); + auto file2 = util::fs::find(TESTS_BINARY_DIR "/root", "file-2.txt", false); BOOST_TEST(file1.find("file-1.txt") != std::string::npos); BOOST_TEST(file2.empty()); @@ -478,8 +478,8 @@ BOOST_AUTO_TEST_CASE(recursive) { - auto file1 = util::fs::find(CMAKE_CURRENT_BINARY_DIR "/root", "file-1.txt", true); - auto file2 = util::fs::find(CMAKE_CURRENT_BINARY_DIR "/root", "file-2.txt", true); + auto file1 = util::fs::find(TESTS_BINARY_DIR "/root", "file-1.txt", true); + auto file2 = util::fs::find(TESTS_BINARY_DIR "/root", "file-2.txt", true); BOOST_TEST(file1.find("file-1.txt") != std::string::npos); BOOST_TEST(file2.find("file-2.txt") != std::string::npos);