summaryrefslogtreecommitdiffhomepage
path: root/test/serializer.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-19 02:12:05 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-19 02:15:16 +0100
commit94c531bd05ab6b49996113faff9584cb6b534b9c (patch)
tree273aae5c8ee1f8c2801a2c5ca05ca52422e49a35 /test/serializer.cpp
parent703c19301f2e93fb59b468bdd635a9cc763fad3f (diff)
loader: chdir to share/floormat
Diffstat (limited to 'test/serializer.cpp')
-rw-r--r--test/serializer.cpp10
1 files changed, 5 insertions, 5 deletions
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);