]> granicus.if.org Git - procps-ng/commitdiff
tests: Fix paths for testsuite
authorCraig Small <csmall@dropbear.xyz>
Wed, 24 Feb 2021 09:41:38 +0000 (20:41 +1100)
committerCraig Small <csmall@dropbear.xyz>
Wed, 24 Feb 2021 09:41:38 +0000 (20:41 +1100)
make distcheck gets confused what is in srcdir and what is in
topdir

Signed-off-by: Craig Small <csmall@dropbear.xyz>
testsuite/lib.test/fileutils.exp
testsuite/lib.test/fileutils_badfd.sh
testsuite/lib.test/fileutils_full.sh

index 3fab11e2e33210d54edc74845144e72277a94c53..0f246c6a4b4bf0a123d200eb6873f2b6d13e037f 100644 (file)
@@ -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"
index 4a0d5c671f4224af07dcbde833bef1c5134e8eae..19a1310598f19bfa6da437bc720a49f976566e59 100755 (executable)
@@ -1,4 +1,3 @@
 #!/bin/sh
 
-BASEDIR=$(dirname ${0})
-${BASEDIR}/../../lib/test_fileutils >&-
+${PWD}/../lib/test_fileutils >&-
index 0d96a0dd8fa042d6e3999a8f0e3ebeac61bf639f..550e581e329fbb64bfc1bbd3cbb579e8079edeef 100755 (executable)
@@ -1,4 +1,3 @@
 #!/bin/sh
 
-BASEDIR=$(dirname ${0})
-${BASEDIR}/../../lib/test_fileutils > /dev/full
+${PWD}/../lib/test_fileutils > /dev/full