aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-03-14 00:53:12 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-03-17 14:41:09 +0300
commitff5c508e1678e2e8a02544cd71c5560bb59f313c (patch)
tree7f5eef2d586e6841df52a05738889f8e7e35ba05 /tests
parentbab021a6203127f38fb89c61cc41deb3e0abbe62 (diff)
Adapt testscripts to ln builtin target path completion fix
Diffstat (limited to 'tests')
-rw-r--r--tests/bash/testscript2
-rw-r--r--tests/cc/modules/modules.testscript4
-rw-r--r--tests/test/script/builtin/ln.testscript4
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/bash/testscript b/tests/bash/testscript
index 09bd989..1e5665c 100644
--- a/tests/bash/testscript
+++ b/tests/bash/testscript
@@ -182,7 +182,7 @@ if ($test.target == $build.host && $build.host.class != 'windows')
# Test execution via symlink.
#
mkdir bin;
- ln -s tmp/bin/driver bin/driver;
+ ln -s ../tmp/bin/driver bin/driver;
bin/driver >'sub';
# Test execution via PATH.
diff --git a/tests/cc/modules/modules.testscript b/tests/cc/modules/modules.testscript
index b603871..a43cc57 100644
--- a/tests/cc/modules/modules.testscript
+++ b/tests/cc/modules/modules.testscript
@@ -109,7 +109,7 @@ $* test clean <<EOI
: Test subdirectory.
:
mkdir foo;
- ln -s ../../core.mxx foo/core.mxx;
+ ln -s ../../../core.mxx foo/core.mxx;
ln -s ../core.mxx ../../core.cxx ../../driver.cxx ./;
$* test clean <'exe{test}: cxx{driver core} mxx{core} foo/mxx{core}'
@@ -136,7 +136,7 @@ $* test clean <<EOI
: Secondary score: sub/core.mxx vs ext-core.mxx (stronger separator).
:
mkdir sub;
- ln -s ../../core.mxx ../../core.cxx sub/;
+ ln -s ../../../core.mxx ../../../core.cxx sub/;
ln -s ../ext-core.mxx ../../driver.cxx ./;
$* test clean <'exe{test}: cxx{driver} mxx{ext-core} sub/{mxx cxx}{core}'
diff --git a/tests/test/script/builtin/ln.testscript b/tests/test/script/builtin/ln.testscript
index 2838b22..542b0c7 100644
--- a/tests/test/script/builtin/ln.testscript
+++ b/tests/test/script/builtin/ln.testscript
@@ -57,7 +57,7 @@
$c <<EOI && $b
mkdir b c;
touch a b/c;
- ln -s a b c/
+ ln -s ../a ../b c/
EOI
: no-cleanup
@@ -65,7 +65,7 @@
$c <<EOI && $b
mkdir b c;
touch a b/c;
- ln -s --no-cleanup a b c/;
+ ln -s --no-cleanup ../a ../b c/;
rm -r c/a c/b
EOI
}