bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] avoid spurious test failure (working --listed), #24


From: Jim Meyering
Subject: [Bug-tar] avoid spurious test failure (working --listed), #24
Date: Sat, 25 Feb 2006 11:16:34 +0100

[using the latest from cvs, post-tar-1.15.90]
When running `make check' on a Linux tmpfs file system, I got this:

   24: working --listed          FAILED (listed02.at:149)

Looking at testsuite.log, you can see it's not a bug in tar:
--- -   2006-02-25 11:10:21.917365000 +0100
+++ /t/tar-1.15.90/tests/testsuite.dir/at-stderr        2006-02-25 
11:10:21.91209
3034 +0100
@@ -1,4 +1,4 @@
-tar: tart/c0: Directory is new
 tar: tart/c1: Directory is new
+tar: tart/c0: Directory is new
 tar: tart/c2: Directory is new
 
24. listed02.at:28: 24. working --listed (listed02.at:28): FAILED 
(listed02.at:15
2)

Here's a fix:

2006-02-25  Jim Meyering  <address@hidden>

        * tests/listed02.at: Sort the two lines of stderr from the
        first `tar -v --listed-incremental'.  They would come out
        reversed and provoke a test failure on a tmpfs file system.


Index: listed02.at
===================================================================
RCS file: /cvsroot/tar/tar/tests/listed02.at,v
retrieving revision 1.8
diff -u -p -r1.8 listed02.at
--- listed02.at 9 Nov 2005 13:09:45 -0000       1.8
+++ listed02.at 25 Feb 2006 09:58:54 -0000
@@ -1,7 +1,7 @@
 # Process this file with autom4te to create testsuite. -*- Autotest -*-
 
 # Test suite for GNU tar.
-# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -46,7 +46,11 @@ done
 
 sleep 1
 echo Creating main archive
-tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart || exit 1
+tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
+
+# The above prints two lines to stderr announcing the new directories c0 and 
c1.
+# Ensure that they appear in this script's stderr in sorted order.
+sort err 1>&2; rm -f err
 
 sleep 1
 echo Modifying filesystem




reply via email to

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