diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-19 02:12:05 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-19 02:15:16 +0100 |
| commit | 94c531bd05ab6b49996113faff9584cb6b534b9c (patch) | |
| tree | 273aae5c8ee1f8c2801a2c5ca05ca52422e49a35 /test/json.cpp | |
| parent | 703c19301f2e93fb59b468bdd635a9cc763fad3f (diff) | |
loader: chdir to share/floormat
Diffstat (limited to 'test/json.cpp')
| -rw-r--r-- | test/json.cpp | 4 |
1 files changed, 2 insertions, 2 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")); |
