Import upstream version 1.29
[debian/tar] / tests / sparse02.at
index 1f0449146deb2cb0c780de6ad45de0d3463ae5ca..a4ac62edbd5aef217fa39b5f379de054943c9aa9 100644 (file)
@@ -1,7 +1,8 @@
 # Process this file with autom4te to create testsuite. -*- Autotest -*-
 
 # Test suite for GNU tar.
-# Copyright 2004, 2006-2007, 2013-2014 Free Software Foundation, Inc.
+# Copyright 2004, 2006-2007, 2013-2014, 2016 Free Software Foundation,
+# Inc.
 
 # This file is part of GNU tar.
 
@@ -27,7 +28,7 @@ AT_KEYWORDS([sparse sparse02])
 
 AT_TAR_CHECK([
 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || AT_SKIP_TEST
-tar -c -f archive --sparse sparsefile || exit 1
+tar --hole-detection=raw -c -f archive --sparse sparsefile || exit 1
 echo separator
 
 tar xfO archive | cat - > sparsecopy || exit 1