bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] [PATCH] tests: avoid spurious failure when VERSION_CONTROL env


From: Jim Meyering
Subject: [Bug-tar] [PATCH] tests: avoid spurious failure when VERSION_CONTROL envvar is set
Date: Mon, 08 Nov 2010 20:02:15 +0100

I ran "make check" for tar-1.25 and saw a failure:

   49: extracting existing dir with --backup           FAILED (backup01.at:36)

Here's a fix:

>From fbbcca7da693ffec258a135d9da857929b9964b9 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Mon, 8 Nov 2010 19:59:42 +0100
Subject: [PATCH] tests: avoid spurious failure when VERSION_CONTROL envvar is 
set

* tests/backup01.at: Unset VERSION_CONTROL.  Otherwise,
when set to e.g., 'always', it would cause this test to fail.
---
 tests/backup01.at |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tests/backup01.at b/tests/backup01.at
index 83d1bea..cf0a907 100644
--- a/tests/backup01.at
+++ b/tests/backup01.at
@@ -1,7 +1,7 @@
 # Process this file with autom4te to create testsuite. -*- Autotest -*-

 # Test suite for GNU tar.
-# Copyright (C) 2009 Free Software Foundation, Inc.
+# Copyright (C) 2009-2010 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
@@ -34,6 +34,7 @@ AT_SETUP([extracting existing dir with --backup])
 AT_KEYWORDS([extract backup backup01])

 AT_TAR_CHECK([
+unset VERSION_CONTROL
 mkdir dir1 dir2
 echo bla > dir1/file1
 tar cf test.tar dir1 dir2
--
1.7.3.2.2.gaf77a



reply via email to

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