X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=tests%2Fgzip.at;h=908b6ed20e0a58e86df07a4cc4cac7d930217ae2;hb=ecd700fbfb6c4d04fd67f4fdf9944ff6377ff064;hp=eb4303050abeab69d8a7be736c712e4ed546ac1d;hpb=985637ab5a7448cf89e59ac433229a4fef2d265d;p=chaz%2Ftar diff --git a/tests/gzip.at b/tests/gzip.at index eb43030..908b6ed 100644 --- a/tests/gzip.at +++ b/tests/gzip.at @@ -1,7 +1,7 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2004, 2007 Free Software Foundation, Inc. +# Copyright (C) 2004, 2007, 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 @@ -27,15 +27,15 @@ unset TAR_OPTIONS AT_CHECK([ AT_GZIP_PREREQ -tar xfvz /dev/null -test $? = 2 || exit 1 +tar xfvz /dev/null 2>err +RC=$? +sed -n '/^tar:/p' err >&2 +exit $RC ], -[0], +[2], [], -[ -gzip: stdin: unexpected end of file -tar: Child returned status 1 -tar: Exiting with failure status due to previous errors +[tar: Child returned status 1 +tar: Error is not recoverable: exiting now ], [],[])