summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorCraig Small <csmall@dropbear.xyz>2021-02-24 20:41:38 +1100
committerCraig Small <csmall@dropbear.xyz>2021-02-24 20:41:38 +1100
commitcce0e21e59b15fa7660e95c00aee6c21d6750cfa (patch)
treec800e8fb60972aa70441f486e22e896f5706fc9a /testsuite
parent76a8d7b5cbd39b092e2c2d0bba165603c10b6885 (diff)
downloadprocps-ng-cce0e21e59b15fa7660e95c00aee6c21d6750cfa.tar.gz
tests: Fix paths for testsuite
make distcheck gets confused what is in srcdir and what is in topdir Signed-off-by: Craig Small <csmall@dropbear.xyz>
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/lib.test/fileutils.exp4
-rwxr-xr-xtestsuite/lib.test/fileutils_badfd.sh3
-rwxr-xr-xtestsuite/lib.test/fileutils_full.sh3
3 files changed, 4 insertions, 6 deletions
diff --git a/testsuite/lib.test/fileutils.exp b/testsuite/lib.test/fileutils.exp
index 3fab11e..0f246c6 100644
--- a/testsuite/lib.test/fileutils.exp
+++ b/testsuite/lib.test/fileutils.exp
@@ -8,12 +8,12 @@ set test "without argument"
spawn $noarg
expect_pass "$test" "Hello, World!"
-set badfd "${topdir}testsuite/lib.test/fileutils_badfd.sh"
+set badfd "${srcdir}/lib.test/fileutils_badfd.sh"
set test "test bad file descriptor"
spawn $badfd
expect_pass "$test" "test_fileutils: write error: Bad file descriptor"
-set full "${topdir}testsuite/lib.test/fileutils_full.sh"
+set full "${srcdir}/lib.test/fileutils_full.sh"
set test "test no space left on device"
spawn $full
expect_pass "$test" "test_fileutils: write error: No space left on device"
diff --git a/testsuite/lib.test/fileutils_badfd.sh b/testsuite/lib.test/fileutils_badfd.sh
index 4a0d5c6..19a1310 100755
--- a/testsuite/lib.test/fileutils_badfd.sh
+++ b/testsuite/lib.test/fileutils_badfd.sh
@@ -1,4 +1,3 @@
#!/bin/sh
-BASEDIR=$(dirname ${0})
-${BASEDIR}/../../lib/test_fileutils >&-
+${PWD}/../lib/test_fileutils >&-
diff --git a/testsuite/lib.test/fileutils_full.sh b/testsuite/lib.test/fileutils_full.sh
index 0d96a0d..550e581 100755
--- a/testsuite/lib.test/fileutils_full.sh
+++ b/testsuite/lib.test/fileutils_full.sh
@@ -1,4 +1,3 @@
#!/bin/sh
-BASEDIR=$(dirname ${0})
-${BASEDIR}/../../lib/test_fileutils > /dev/full
+${PWD}/../lib/test_fileutils > /dev/full