On Thu, Aug 18, 2011 at 00:34, Paul Eggert <[email protected]> wrote:
> On 08/16/2011 06:07 PM, Kevin Brott wrote: > > Any chance you could give me an example of where you would suggest this > change? > > There are three copies of each test in the 'testsuite' file, > and you should change all three copies consistently. > > Or, you can run the test by hand, by looking in the appropriate > *.at file and executing its commands one by one. > This is the segment of pipe.at that I tested against ... mkdir directory genfile --length 10240 --pattern zeros --file directory/file1 genfile --length 13 --file directory/file2 tar cf archive directory mv directory orig cat archive | tar xfv - --warning=no-timestamp | sort echo "separator" cmp orig/file1 directory/file1 echo "separator" cmp orig/file2 directory/file2], So I cd into tests and ran the following commands: $ mkdir directory $ ./genfile --length 10240 --pattern zeros --file directory/file1 $ ./genfile --length 13 --file directory/file2 $ ../src/tar cf archive directory *../src/tar: directory/file1: file changed as we read it* *../src/tar: directory/file2: file changed as we read it* $ rm archive $ truss ../src/tar cf archive directory 2> /var/tmp/truss.1 *(attached)* $ mv directory orig $ cat archive | ../src/tar xfv - --warning=no-timestamp | sort *directory/* *directory/file1* *directory/file2* $ cmp orig/file1 directory/file1 *cmp: EOF on directory/file1* $ cmp orig/file2 directory/file2 *cmp: EOF on directory/file2* $ ls -al orig/* *-rw-r--r-- 1 brottk sysadmin 10240 Aug 18 09:34 orig/file1* *-rw-r--r-- 1 brottk sysadmin 13 Aug 18 09:34 orig/file2* $ ls -al directory/* *-rw-r--r-- 1 brottk sysadmin 0 Aug 18 09:34 directory/file1* *-rw-r--r-- 1 brottk sysadmin 0 Aug 18 09:34 directory/file2* $ ../src/tar tvf archive *drwxr-xr-x brottk/sysadmin 0 2011-08-18 09:34 directory/* *-rw-r--r-- brottk/sysadmin 0 2011-08-18 09:34 directory/file1* *-rw-r--r-- brottk/sysadmin 0 2011-08-18 09:34 directory/file2* Looks like tar isn't putting anything but zero-byte files into the archives - which of course would make all the tests related to contents fail. -- # include <stddisclaimer.h> /* Kevin Brott <[email protected]> */
truss.1
Description: Binary data
