aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-01-15 15:12:01 +0200
committerSergey Poznyakoff <gray@gnu.org>2019-01-15 15:12:01 +0200
commit068f5dbd006c02f9e70558a2b19e61becb5ed652 (patch)
treedca2dac1ee2caa1b7adde2a601e8bf599d2681f4
parent3be097c12ec14a69b3f3df3e2138fa235a3154d7 (diff)
downloadcpio-068f5dbd006c02f9e70558a2b19e61becb5ed652.tar.gz
cpio-068f5dbd006c02f9e70558a2b19e61becb5ed652.tar.bz2
Minor fix in the testsuite
* tests/symlink-long.at: Use m4 to create dirname, instead of using bash-specific syntax.
-rw-r--r--.gitignore2
-rw-r--r--tests/symlink-long.at12
2 files changed, 9 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index fae03de..92e9421 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
1/ABOUT-NLS
2/build-aux
1/ABOUT-NLS~ 3/ABOUT-NLS~
2*.a 4*.a
3*.o 5*.o
diff --git a/tests/symlink-long.at b/tests/symlink-long.at
index cd41154..741b073 100644
--- a/tests/symlink-long.at
+++ b/tests/symlink-long.at
@@ -23,14 +23,14 @@
23AT_SETUP([symlink-long]) 23AT_SETUP([symlink-long])
24AT_KEYWORDS([symlink-long copyout]) 24AT_KEYWORDS([symlink-long copyout])
25 25
26m4_pushdef([DIRNAME],
27[m4_if($1,0,,[xxxxxxxxx/DIRNAME(m4_decr($1))])])
28
26AT_CHECK([ 29AT_CHECK([
27 30
28# len(dirname) > READBUFSIZE 31# len(dirname) > READBUFSIZE
29dirname= 32dirname=DIRNAME(52)
30for i in {1..52}; do 33AS_MKDIR_P($dirname)
31 dirname="xxxxxxxxx/$dirname"
32 mkdir "$dirname"
33done
34ln -s "$dirname" x || AT_SKIP_TEST 34ln -s "$dirname" x || AT_SKIP_TEST
35 35
36echo x | cpio -o > ar 36echo x | cpio -o > ar
@@ -43,4 +43,6 @@ test "$list" = "$dirname" && echo success || echo fail
432 blocks 432 blocks
44]) 44])
45 45
46m4_popdef([DIRNAME])
47
46AT_CLEANUP 48AT_CLEANUP

Return to:

Send suggestions and report system problems to the System administrator.