bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] [GNU tar 1.28] testsuite: 1 5 6 7 8 9 145 146 147 148 failed,


From: cpolish
Subject: [Bug-tar] [GNU tar 1.28] testsuite: 1 5 6 7 8 9 145 146 147 148 failed, 11 22 24 28 29 33 35 37 38 39 54 57 58 59 60 66 67 68 69 70 71 72 74 75 82 88 105 106 109 110 116 137 142 149 passed unexpectedly
Date: Sun, 19 Oct 2014 00:05:45 -0700
User-agent: Heirloom mailx 12.5 7/5/10

## ------------------------ ##
## GNU tar 1.28 test suite. ##
## ------------------------ ##

testsuite: command line was:
  $ tests/testsuite 

## --------- ##
## Platform. ##
## --------- ##

hostname = mencius.peecee3.com
uname -m = x86_64
uname -r = 3.10.0-123.6.3.el7.x86_64
uname -s = Linux
uname -v = #1 SMP Wed Aug 6 21:12:36 UTC 2014

/usr/bin/uname -p = x86_64
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/local/sbin
PATH: /usr/sbin

## ---------------- ##
## Tested programs. ##
## ---------------- ##

/testsuite.at:180: /usr/bin/tar --version
tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

## ------------------ ##
## Running the tests. ##
## ------------------ ##
testsuite: starting at: Sat Oct 18 23:58:56 PDT 2014
3. mixing options (options.at:24): ok     (0m0.005s 0m0.002s)
4. interspersed options (options02.at:26): ok     (0m0.003s 0m0.006s)
10. --pax-option compatibility (opcomp06.at:21): skipped (opcomp06.at:24)
11. multiple file lists (T-mult.at:21): UNEXPECTED PASS     (0m0.005s 0m0.012s)
21. gzip (gzip.at:24): ok     (0m0.003s 0m0.008s)
22. recurse (recurse.at:21): UNEXPECTED PASS     (0m0.020s 0m0.056s)
24. short records (shortrec.at:25): UNEXPECTED PASS     (0m0.035s 0m0.120s)
25. terminal input (iotty.at:26): skipped (iotty.at:29)
28. append (append.at:21): UNEXPECTED PASS     (0m0.019s 0m0.069s)
29. appending files with long names (append01.at:29): UNEXPECTED PASS     
(0m0.018s 0m0.053s)
33. transforming hard links on create (xform-h.at:30): UNEXPECTED PASS     
(0m0.046s 0m0.134s)
35. exclude (exclude.at:23): UNEXPECTED PASS     (0m0.024s 0m0.074s)
37. exclude: anchoring (exclude02.at:19): UNEXPECTED PASS     (0m0.077s 
0m0.214s)
38. exclude: wildcards match slash (exclude03.at:19): UNEXPECTED PASS     
(0m0.051s 0m0.206s)
39. exclude: case insensitive (exclude04.at:19): UNEXPECTED PASS     (0m0.056s 
0m0.199s)
41. exclude: long files in pax archives (exclude06.at:26): skipped 
(exclude06.at:31)
54. deleting members with long names (delete03.at:21): UNEXPECTED PASS     
(0m0.022s 0m0.070s)
57. extract over an existing directory (extrac01.at:23): UNEXPECTED PASS     
(0m0.019s 0m0.053s)
58. extracting symlinks over an existing file (extrac02.at:23): UNEXPECTED PASS 
    (0m0.013s 0m0.069s)
59. extraction loops (extrac03.at:23): UNEXPECTED PASS     (0m0.025s 0m0.047s)
60. extract + fnmatch (extrac04.at:23): UNEXPECTED PASS     (0m0.022s 0m0.115s)
61. extracting selected members from pax (extrac05.at:30): skipped 
(extrac05.at:38)
66. -C and delayed setting of metadata (extrac10.at:29): UNEXPECTED PASS     
(0m0.004s 0m0.014s)
67. scarce file descriptors (extrac11.at:25): UNEXPECTED PASS     (0m0.014s 
0m0.107s)
68. extract dot permissions (extrac12.at:25): UNEXPECTED PASS     (0m0.004s 
0m0.015s)
69. extract over symlinks (extrac13.at:26): UNEXPECTED PASS     (0m0.007s 
0m0.030s)
70. extract -C symlink (extrac14.at:25): UNEXPECTED PASS     (0m0.002s 0m0.014s)
71. extract parent mkdir failure (extrac15.at:25): UNEXPECTED PASS     
(0m0.002s 0m0.021s)
72. extract empty directory with -C (extrac16.at:26): UNEXPECTED PASS     
(0m0.003s 0m0.012s)
74. keep-old-files (extrac18.at:34): UNEXPECTED PASS     (0m0.019s 0m0.085s)
75. skip-old-files (extrac19.at:21): UNEXPECTED PASS     (0m0.030s 0m0.066s)
82. incremental (incremental.at:23): UNEXPECTED PASS     (0m0.014s 0m0.068s)
88. --listed-incremental and --one-file-system (listed04.at:26): UNEXPECTED 
PASS     (0m0.004s 0m0.014s)
89. --listed-incremental and remounted directories (listed05.at:33): skipped 
(listed05.at:36)
91. proper icontents initialization (incr04.at:29): skipped (incr04.at:34)
104. changed file types in incrementals (chtype.at:27): skipped (chtype.at:30)
105. ignfail (ignfail.at:23): UNEXPECTED PASS     (0m0.055s 0m0.130s)
106. link count gt 2 (link01.at:33): UNEXPECTED PASS     (0m0.016s 0m0.110s)
109. link count is 1 but multiple occurrences (link04.at:29): UNEXPECTED PASS   
  (0m0.043s 0m0.108s)
110. long names in V7 archives (longv7.at:24): UNEXPECTED PASS     (0m0.004s 
0m0.011s)
111. long file names divisible by block size (long01.at:28): skipped 
(long01.at:36)
112. ustar: unsplittable file name (lustar01.at:21): skipped (lustar01.at:27)
113. ustar: unsplittable path name (lustar02.at:21): skipped (lustar02.at:32)
114. ustar: splitting long names (lustar03.at:21): skipped (lustar03.at:29)
115. old archives (old.at:23): ok     (0m0.003s 0m0.006s)
116. time: tricky time stamps (time01.at:20): UNEXPECTED PASS     (0m0.062s 
0m0.171s)
123. volumes split at an extended header (multiv07.at:28): skipped 
(multiv07.at:31)
126. sparse files (sparse01.at:21): skipped (sparse01.at:24)
127. extracting sparse file over a pipe (sparse02.at:21): skipped 
(sparse02.at:28)
128. storing sparse files > 8G (sparse03.at:21): skipped (sparse03.at:29)
129. storing long sparse file names (sparse04.at:21): skipped (sparse04.at:35)
130. sparse files in MV archives (sparsemv.at:21): skipped (sparsemv.at:31)
131. sparse files in PAX MV archives, v.0.0 (spmvp00.at:21): skipped 
(spmvp00.at:24)
132. sparse files in PAX MV archives, v.0.1 (spmvp01.at:21): skipped 
(spmvp01.at:24)
133. sparse files in PAX MV archives, v.1.0 (spmvp10.at:21): skipped 
(spmvp10.at:24)
137. verify (verify.at:25): UNEXPECTED PASS     (0m0.015s 0m0.044s)
139. volume header size (volsize.at:29): skipped (volsize.at:32)
142. updating short archives (shortupd.at:31): UNEXPECTED PASS     (0m0.012s 
0m0.036s)
149. remove-files with -C:rel in -c/non-incr. mode (remfiles04a.at:25): 
UNEXPECTED PASS     (0m0.002s 0m0.016s)
168. xattrs: basic functionality (xattr01.at:25): skipped (xattr01.at:28)
169. xattrs: change directory with -C option (xattr02.at:25): skipped 
(xattr02.at:28)
170. xattrs: trusted.* attributes (xattr03.at:25): skipped (xattr03.at:28)
171. xattrs: s/open/openat/ regression (xattr04.at:26): skipped (xattr04.at:29)
172. xattrs: keywords with '=' and '%' (xattr05.at:28): skipped (xattr05.at:31)
173. acls: basic functionality (acls01.at:25): skipped (acls01.at:28)
174. acls: work with -C (acls02.at:25): skipped (acls02.at:28)
175. acls: default ACLs (acls03.at:30): skipped (acls03.at:47)
176. selinux: basic store/restore (selnx01.at:25): skipped (selnx01.at:28)
177. acls/selinux: special files & fifos (selacl01.at:25): skipped 
(selacl01.at:28)
178. capabilities: binary store/restore (capabs_raw01.at:25): skipped 
(capabs_raw01.at:28)
183. gtarfail (gtarfail.at:21): skipped (gtarfail.at:26)
184. gtarfail2 (gtarfail2.at:21): skipped (gtarfail2.at:26)
185. multi-fail (multi-fail.at:21): skipped (multi-fail.at:26)
186. ustar-big-2g (ustar-big-2g.at:21): skipped (ustar-big-2g.at:26)
187. ustar-big-8g (ustar-big-8g.at:21): skipped (ustar-big-8g.at:26)
188. pax-big-10g (pax-big-10g.at:21): skipped (pax-big-10g.at:26)
testsuite: ending at: Sun Oct 19 00:02:40 PDT 2014
testsuite: test suite duration: 0h 3m 44s

## ------------- ##
## Test results. ##
## ------------- ##

ERROR: 150 tests were run,
34 passed unexpectedly,
112 failed (102 expected failures).
38 tests were skipped.

## ------------------------ ##
## Summary of the failures. ##
## ------------------------ ##
Failed tests:
GNU tar 1.28 test suite test groups:

 NUM: FILE-NAME:LINE     TEST-GROUP-NAME
      KEYWORDS

   1: version.at:19      tar version
   5: opcomp01.at:21     occurrence compatibility
      opcomp opcomp01
   6: opcomp02.at:21     occurrence compatibility
      opcomp opcomp02
   7: opcomp03.at:21     --verify compatibility
      opcomp opcomp03
   8: opcomp04.at:21     compress option compatibility
      opcomp opcomp04
   9: opcomp05.at:21     --pax-option compatibility
      opcomp opcomp05
 145: sigpipe.at:21      sigpipe handling
      sigpipe
 146: remfiles01.at:28   remove-files with compression
      create remove-files remfiles01 gzip
 147: remfiles02.at:28   remove-files with compression: grand-child
      create remove-files remfiles02 gzip
 148: remfiles03.at:28   remove-files with symbolic links
      create remove-files remfiles03

Skipped tests:
GNU tar 1.28 test suite test groups:

 NUM: FILE-NAME:LINE     TEST-GROUP-NAME
      KEYWORDS

  10: opcomp06.at:21     --pax-option compatibility
      opcomp opcomp06
  25: iotty.at:26        terminal input
      options iotty
  41: exclude06.at:26    exclude: long files in pax archives
      exclude exclude06
  61: extrac05.at:30     extracting selected members from pax
      extract extract05
  89: listed05.at:33     --listed-incremental and remounted directories
      listed incremental listed05
  91: incr04.at:29       proper icontents initialization
      incremental incr04 icontents
 104: chtype.at:27       changed file types in incrementals
      incremental listed chtype
 111: long01.at:28       long file names divisible by block size
      longname long512
 112: lustar01.at:21     ustar: unsplittable file name
      longname ustar lustar01
 113: lustar02.at:21     ustar: unsplittable path name
      longname ustar lustar02
 114: lustar03.at:21     ustar: splitting long names
      longname ustar lustar03
 123: multiv07.at:28     volumes split at an extended header
      multivolume multiv multiv07 xsplit
 126: sparse01.at:21     sparse files
      sparse sparse01
 127: sparse02.at:21     extracting sparse file over a pipe
      sparse sparse02
 128: sparse03.at:21     storing sparse files > 8G
      sparse sparse03
 129: sparse04.at:21     storing long sparse file names
      sparse sparse04
 130: sparsemv.at:21     sparse files in MV archives
      sparse multiv sparsemv
 131: spmvp00.at:21      sparse files in PAX MV archives, v.0.0
      sparse multivolume multiv sparsemvp sparsemvp00
 132: spmvp01.at:21      sparse files in PAX MV archives, v.0.1
      sparse multiv sparsemvp sparsemvp01
 133: spmvp10.at:21      sparse files in PAX MV archives, v.1.0
      sparse multivolume multiv sparsemvp sparsemvp10
 139: volsize.at:29      volume header size
      volume volsize
 168: xattr01.at:25      xattrs: basic functionality
      xattrs xattr01
 169: xattr02.at:25      xattrs: change directory with -C option
      xattrs xattr02
 170: xattr03.at:25      xattrs: trusted.* attributes
      xattrs xattr03
 171: xattr04.at:26      xattrs: s/open/openat/ regression
      xattrs xattr04
 172: xattr05.at:28      xattrs: keywords with '=' and '%'
      xattrs xattr05
 173: acls01.at:25       acls: basic functionality
      xattrs acls acls01
 174: acls02.at:25       acls: work with -C
      xattrs acls acls02
 175: acls03.at:30       acls: default ACLs
      xattrs acls acls03
 176: selnx01.at:25      selinux: basic store/restore
      xattrs selinux selnx01
 177: selacl01.at:25     acls/selinux: special files & fifos
      xattrs selinux acls selacls01
 178: capabs_raw01.at:25 capabilities: binary store/restore
      xattrs capabilities capabs_raw01
 183: gtarfail.at:21     gtarfail
      star gtarfail
 184: gtarfail2.at:21    gtarfail2
      star gtarfail2
 185: multi-fail.at:21   multi-fail
      star multivolume multiv multi-fail
 186: ustar-big-2g.at:21 ustar-big-2g
      star ustar-big-2g
 187: ustar-big-8g.at:21 ustar-big-8g
      star ustar-big-8g
 188: pax-big-10g.at:21  pax-big-10g
      star pax-big-10g

Unexpected passes:
GNU tar 1.28 test suite test groups:

 NUM: FILE-NAME:LINE     TEST-GROUP-NAME
      KEYWORDS

  11: T-mult.at:21       multiple file lists
      files-from t-mult
  22: recurse.at:21      recurse
      recurse
  24: shortrec.at:25     short records
      shortrec
  28: append.at:21       append
      append append00
  29: append01.at:29     appending files with long names
      append append01
  33: xform-h.at:30      transforming hard links on create
      transform xform xform-h
  35: exclude.at:23      exclude
      exclude
  37: exclude02.at:19    exclude: anchoring
      exclude exclude02
  38: exclude03.at:19    exclude: wildcards match slash
      exclude exclude03
  39: exclude04.at:19    exclude: case insensitive
      exclude exclude04
  54: delete03.at:21     deleting members with long names
      delete delete03
  57: extrac01.at:23     extract over an existing directory
      extract extract01
  58: extrac02.at:23     extracting symlinks over an existing file
      extract extract02 symlink
  59: extrac03.at:23     extraction loops
      extract extract03
  60: extrac04.at:23     extract + fnmatch
      extract extract04 fnmatch
  66: extrac10.at:29     -C and delayed setting of metadata
      extract extrac10
  67: extrac11.at:25     scarce file descriptors
      extract extrac11
  68: extrac12.at:25     extract dot permissions
      extract extrac12
  69: extrac13.at:26     extract over symlinks
      extract extrac13
  70: extrac14.at:25     extract -C symlink
      extract extrac14
  71: extrac15.at:25     extract parent mkdir failure
      extract extrac15
  72: extrac16.at:26     extract empty directory with -C
      extract extrac16
  74: extrac18.at:34     keep-old-files
      extract extrac18 old-files keep-old-files
  75: extrac19.at:21     skip-old-files
      extract extrac19 old-files skip-old-files
  82: incremental.at:23  incremental
      incremental listed incr00
  88: listed04.at:26     --listed-incremental and --one-file-system
      listed incremental listed04
 105: ignfail.at:23      ignfail
      ignfail
 106: link01.at:33       link count gt 2
      hardlinks link01
 109: link04.at:29       link count is 1 but multiple occurrences
      hardlinks link04
 110: longv7.at:24       long names in V7 archives
      longname longv7
 116: time01.at:20       time: tricky time stamps
      time time01
 137: verify.at:25       verify
      verify
 142: shortupd.at:31     updating short archives
      shortfile shortfile1 shortupd
 149: remfiles04a.at:25  remove-files with -C:rel in -c/non-incr. mode
      create remove-files remfiles04 remfiles04a

## ---------------------- ##
## Detailed failed tests. ##
## ---------------------- ##

#                             -*- compilation -*-
1. version.at:19: testing tar version ...
/version.at:21: tar --version | sed 1q
--- -   2014-10-18 23:58:56.474589684 -0700
+++ /home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/1/stdout    
2014-10-18 23:58:56.452141663 -0700
@@ -1,2 +1,2 @@
-tar (GNU tar) 1.28
+tar (GNU tar) 1.26
 
/home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/1/test-source: 
line 22: $XFAILFILE: ambiguous redirect
1. version.at:19: 1. tar version (version.at:19): FAILED (version.at:21)

#                             -*- compilation -*-
5. opcomp01.at:21: testing occurrence compatibility ...
/opcomp01.at:24:
tar --occurrence=1 -cf test.tar .

--- -   2014-10-18 23:58:58.533531380 -0700
+++ /home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/5/stderr    
2014-10-18 23:58:58.516238128 -0700
@@ -1,3 +1,3 @@
-tar: '--occurrence' cannot be used with '-c'
-Try 'tar --help' or 'tar --usage' for more information.
+tar: --occurrence cannot be used in the requested operation mode
+Try `tar --help' or `tar --usage' for more information.
 
5. opcomp01.at:21: 5. occurrence compatibility (opcomp01.at:21): FAILED 
(opcomp01.at:24)

#                             -*- compilation -*-
6. opcomp02.at:21: testing occurrence compatibility ...
/opcomp02.at:24:
tar --occurrence=1 -tf test.tar

--- -   2014-10-18 23:58:58.957591113 -0700
+++ /home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/6/stderr    
2014-10-18 23:58:58.940257944 -0700
@@ -1,3 +1,3 @@
 tar: --occurrence is meaningless without a file list
-Try 'tar --help' or 'tar --usage' for more information.
+Try `tar --help' or `tar --usage' for more information.
 
6. opcomp02.at:21: 6. occurrence compatibility (opcomp02.at:21): FAILED 
(opcomp02.at:24)

#                             -*- compilation -*-
7. opcomp03.at:21: testing --verify compatibility ...
/opcomp03.at:24:
tar -tWf test.tar .

--- -   2014-10-18 23:58:59.369220864 -0700
+++ /home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/7/stderr    
2014-10-18 23:58:59.352277199 -0700
@@ -1,3 +1,2 @@
-tar: '--verify' cannot be used with '-t'
-Try 'tar --help' or 'tar --usage' for more information.
+/home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/7/test-source: 
line 33: 32460 Aborted                 tar -tWf test.tar .
 
/opcomp03.at:24: exit code was 134, expected 2
7. opcomp03.at:21: 7. --verify compatibility (opcomp03.at:21): FAILED 
(opcomp03.at:24)

#                             -*- compilation -*-
8. opcomp04.at:21: testing compress option compatibility ...
/opcomp04.at:24:

cat /dev/null | gzip - > /dev/null 2>&1 || exit 77

genfile --file file
tar czf test.tar file
genfile --file newfile
tar rzf test.tar newfile

--- -   2014-10-18 23:58:59.928643849 -0700
+++ /home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/8/stderr    
2014-10-18 23:58:59.895302523 -0700
@@ -1,3 +1,7 @@
+/home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/8/test-source: 
line 25: genfile: command not found
+tar: file: Cannot stat: No such file or directory
+tar: Exiting with failure status due to previous errors
+/home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/8/test-source: 
line 27: genfile: command not found
 tar: Cannot update compressed archives
-Try 'tar --help' or 'tar --usage' for more information.
+Try `tar --help' or `tar --usage' for more information.
 
8. opcomp04.at:21: 8. compress option compatibility (opcomp04.at:21): FAILED 
(opcomp04.at:24)

#                             -*- compilation -*-
9. opcomp05.at:21: testing --pax-option compatibility ...
/opcomp05.at:24:
tar -Hgnu -cf test.tar --pax-option user:=root .

--- -   2014-10-18 23:59:00.378086310 -0700
+++ /home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/9/stderr    
2014-10-18 23:59:00.344323555 -0700
@@ -1,3 +1,3 @@
 tar: --pax-option can be used only on POSIX archives
-Try 'tar --help' or 'tar --usage' for more information.
+Try `tar --help' or `tar --usage' for more information.
 
9. opcomp05.at:21: 9. --pax-option compatibility (opcomp05.at:21): FAILED 
(opcomp05.at:24)

#                             -*- compilation -*-
145. sigpipe.at:21: testing sigpipe handling ...
/sigpipe.at:30:

case `(cat "$at_myself" 2>&3 | :) 3>&1 >/dev/null` in #(
?*) exit 77;;
esac


genfile --length 2048 --file first
genfile --length 2048 --file second
genfile --length 2049 --file third

tar cf archive first second third

# Discard diagnostics that some shells generate about broken pipes.
(tar tf archive 2>&3 | :) 3>&2 2>/dev/null

--- /dev/null   2014-09-15 21:39:46.438832987 -0700
+++ /home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/145/stderr  
2014-10-19 00:02:08.135100198 -0700
@@ -0,0 +1,7 @@
+/home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/145/test-source:
 line 41: genfile: command not found
+/home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/145/test-source:
 line 42: genfile: command not found
+/home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/145/test-source:
 line 43: genfile: command not found
+tar: first: Cannot stat: No such file or directory
+tar: second: Cannot stat: No such file or directory
+tar: third: Cannot stat: No such file or directory
+tar: Exiting with failure status due to previous errors
145. sigpipe.at:21: 145. sigpipe handling (sigpipe.at:21): FAILED 
(sigpipe.at:30)

#                             -*- compilation -*-
146. remfiles01.at:28: testing remove-files with compression ...
/remfiles01.at:32:

echo "test" > $$
chmod 0 $$
cat $$ > /dev/null 2>&1
result=$?
rm -f $$
test $result -eq 0 && exit 77


cat /dev/null | gzip - > /dev/null 2>&1 || exit 77


case `(cat "$at_myself" 2>&3 | :) 3>&1 >/dev/null` in #(
?*) exit 77;;
esac


test -z "`sort < /dev/null 2>&1`" || exit 77


mkdir dir
cd dir
genfile --file a --length 0
chmod 0 a
genfile --file b
mkdir c

# Depending on when the SIGPIPE gets delivered, the invocation below
# may finish with either
#  tar: a: Cannot write: Broken pipe
# or
#  tar: Child returned status 2

# Discard diagnostics that some shells generate about broken pipes,
# and discard all of tar's diagnostics except for the ones saying "(child)".
# Gzip's exit code is propagated to the shell.  Usually it is 141.
# Convert all non-zero exits to 2 to make it predictable.
(tar -c -f a -z --remove-files b c 2>err || (exit 2) ) 2>/dev/null
EC=$?
sed -n '/(child)/p' err >&2
rm err
find . | sort
exit $EC

--- -   2014-10-19 00:02:08.893477061 -0700
+++ /home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/146/stderr  
2014-10-19 00:02:08.851133662 -0700
@@ -1,3 +1,4 @@
-tar (child): a: Cannot open: Permission denied
-tar (child): Error is not recoverable: exiting now
+/home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/146/test-source:
 line 81: genfile: command not found
+chmod: cannot access 'a': No such file or directory
+/home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/146/test-source:
 line 83: genfile: command not found
 
--- -   2014-10-19 00:02:08.912616061 -0700
+++ /home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/146/stdout  
2014-10-19 00:02:08.895135719 -0700
@@ -1,5 +1,3 @@
 .
 ./a
-./b
-./c
 
146. remfiles01.at:28: 146. remove-files with compression (remfiles01.at:28): 
FAILED (remfiles01.at:32)

#                             -*- compilation -*-
147. remfiles02.at:28: testing remove-files with compression: grand-child ...
/remfiles02.at:32:

cat /dev/null | gzip - > /dev/null 2>&1 || exit 77


test -z "`sort < /dev/null 2>&1`" || exit 77


mkdir dir
cd dir
mkdir a
genfile --file b
mkdir c

tar -c -f a -z --remove-files b c 2>err
EC=$?
sed -n '/(child)/p' err >&2
rm err
find . | sort
exit $EC

--- -   2014-10-19 00:02:09.547623998 -0700
+++ /home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/147/stderr  
2014-10-19 00:02:09.530165409 -0700
@@ -1,3 +1,4 @@
+/home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/147/test-source:
 line 45: genfile: command not found
 tar (child): a: Cannot open: Is a directory
 tar (child): Error is not recoverable: exiting now
 
--- -   2014-10-19 00:02:09.564456556 -0700
+++ /home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/147/stdout  
2014-10-19 00:02:09.549166287 -0700
@@ -1,5 +1,4 @@
 .
 ./a
-./b
 ./c
 
147. remfiles02.at:28: 147. remove-files with compression: grand-child 
(remfiles02.at:28): FAILED (remfiles02.at:32)

#                             -*- compilation -*-
148. remfiles03.at:28: testing remove-files with symbolic links ...
/remfiles03.at:31:
mkdir a
mkdir a/b
ln -s b a/c || exit 77
tar --remove-files -cf a.tar a
genfile --stat a

--- -   2014-10-19 00:02:10.015948144 -0700
+++ /home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/148/stderr  
2014-10-19 00:02:09.982186526 -0700
@@ -1,2 +1,2 @@
-genfile: stat(a) failed: No such file or directory
+/home/chas/BUILD_TREES_MENCIUS/tar-1.28/testsuite.dir/at-groups/148/test-source:
 line 24: genfile: command not found
 
/remfiles03.at:31: exit code was 127, expected 0
148. remfiles03.at:28: 148. remove-files with symbolic links 
(remfiles03.at:28): FAILED (remfiles03.at:31)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]