diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/json.cpp | 4 | ||||
-rw-r--r-- | test/serializer.cpp | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/test/json.cpp b/test/json.cpp index 7d01a51b..8cc6ed96 100644 --- a/test/json.cpp +++ b/test/json.cpp @@ -36,8 +36,8 @@ static chunk make_test_chunk() void test_app::test_json() // NOLINT(readability-convert-member-functions-to-static) { - fm_assert(Path::exists("../CMakeCache.txt")); - constexpr auto output_dir = "../test/."_s; + fm_assert(Path::exists(Path::join(loader.TEMP_PATH, "CMakeCache.txt"))); + const auto output_dir = Path::join(loader.TEMP_PATH, "test/."_s); { auto atlas = loader.tile_atlas("metal1", {2, 2}, pass_mode::pass); json_helper::to_json(atlas, Path::join(output_dir, "atlas.json")); diff --git a/test/serializer.cpp b/test/serializer.cpp index 5a520dbb..62c3365e 100644 --- a/test/serializer.cpp +++ b/test/serializer.cpp @@ -106,16 +106,16 @@ void test_serializer(StringView input, StringView tmp) void test_app::test_serializer_1() { - fm_assert(Path::exists("../CMakeCache.txt")); - constexpr auto tmp_filename = "../test/test-serializer1.dat"_s; + fm_assert(Path::exists(Path::join(loader.TEMP_PATH, "CMakeCache.txt"))); + const auto tmp_filename = Path::join(loader.TEMP_PATH, "test/test-serializer1.dat"_s); test_serializer({}, tmp_filename); } void test_app::test_serializer_2() { - fm_assert(Path::exists("../CMakeCache.txt")); - constexpr auto tmp_filename = "../test/test-serializer2.dat"_s; - constexpr auto dir = "../test/save/"_s; + fm_assert(Path::exists(Path::join(loader.TEMP_PATH, "CMakeCache.txt"))); + const auto tmp_filename = Path::join(loader.TEMP_PATH, "test/test-serializer2.dat"_s); + const auto dir = Path::join(loader.TEMP_PATH, "test/save/"_s); using LF = Path::ListFlag; auto files = Path::list(dir, LF::SkipDirectories|LF::SkipSpecial|LF::SkipDotAndDotDot); fm_assert(files); |