Imported Upstream version 1.4
[debian/gzip] / tests / zgrep-f
index 9184b9c93739c3dc8e335227c3d498703d9f25f4..5f4b7a002bff819eb10626295d54d83e33986c57 100644 (file)
@@ -2,7 +2,7 @@
 # Ensure that zgrep -f - works like grep -f -
 # Before gzip-1.4, it would fail.
 
-# 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
@@ -23,7 +23,8 @@ if test "$VERBOSE" = yes; then
   zgrep --version
 fi
 
-. $srcdir/tests/test-lib.sh
+: ${srcdir=.}
+. "$srcdir/tests/init.sh"; path_prepend_ .
 
 echo needle > n || framework_failure
 echo needle > haystack || framework_failure