From ff5c508e1678e2e8a02544cd71c5560bb59f313c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 14 Mar 2020 00:53:12 +0300 Subject: Adapt testscripts to ln builtin target path completion fix --- doc/testscript.cli | 3 ++- tests/bash/testscript | 2 +- tests/cc/modules/modules.testscript | 4 ++-- tests/test/script/builtin/ln.testscript | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/doc/testscript.cli b/doc/testscript.cli index d39893a..6b47dad 100644 --- a/doc/testscript.cli +++ b/doc/testscript.cli @@ -2413,7 +2413,8 @@ If the last argument does not end with a directory separator, then the first synopsis is assumed where \c{ln} creates the symbolic link to \i{target-path} at \i{link-path} failing if the \i{target-path} filesystem entry does not exist, \i{link-path} filesystem entry already exists or more than two arguments -are specified. +are specified. If \i{target-path} is relative, then it is assumed to be +relative to the \i{link-path}'s directory. If the last argument ends with a directory separator, then the second synopsis is assumed where \c{ln} creates one or more symbolic links to \i{target-path} 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 <