From d0d093fef503ca79b5dcf794bf4a82da8c4f4005 Mon Sep 17 00:00:00 2001 From: Emanuel Sprung Date: Fri, 3 Apr 2020 00:06:24 +0200 Subject: [PATCH] AK: Remove relative path in AK testsuite With relative filenames in the executable code, the executable is basically not relocatable. This makes out-of-source builds unneccesery hard. This patchset moves the relative link into the filesystem: that can be handled much easier :^) --- AK/Tests/TestJSON.cpp | 2 +- AK/Tests/test.frm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 120000 AK/Tests/test.frm diff --git a/AK/Tests/TestJSON.cpp b/AK/Tests/TestJSON.cpp index 4f56a49c6f..c8e787d4d4 100644 --- a/AK/Tests/TestJSON.cpp +++ b/AK/Tests/TestJSON.cpp @@ -35,7 +35,7 @@ TEST_CASE(load_form) { - FILE* fp = fopen("../../Base/home/anon/little/test.frm", "r"); + FILE* fp = fopen("test.frm", "r"); ASSERT(fp); StringBuilder builder; diff --git a/AK/Tests/test.frm b/AK/Tests/test.frm new file mode 120000 index 0000000000..ddce2b1698 --- /dev/null +++ b/AK/Tests/test.frm @@ -0,0 +1 @@ +../../Base/home/anon/little/test.frm \ No newline at end of file