summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuel Sprung <emanuel.sprung@gmail.com>2020-04-03 00:06:24 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-03 09:07:19 +0200
commitd0d093fef503ca79b5dcf794bf4a82da8c4f4005 (patch)
tree7146625fae99a2a0b9beb6f1d9239fee74290202
parent94afcb54de07499d15fe8e601127148bba022f96 (diff)
downloadserenity-d0d093fef503ca79b5dcf794bf4a82da8c4f4005.zip
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 :^)
-rw-r--r--AK/Tests/TestJSON.cpp2
l---------AK/Tests/test.frm1
2 files changed, 2 insertions, 1 deletions
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