]> Cypherpunks repositories - gostls13.git/commitdiff
archive/tar: skip TestSparseFiles on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Fri, 22 Sep 2017 13:50:03 +0000 (15:50 +0200)
committerDavid du Colombier <0intro@gmail.com>
Fri, 22 Sep 2017 13:50:50 +0000 (13:50 +0000)
CL 60871 added TestSparseFiles. This test is succeeding
on Plan 9 when executed on the ramfs file system, but
is failing when executed on the Fossil file system.

This may be due to an issue in the handling of sparse
files in the Fossil file system on Plan 9 that should
be investigated.

Updates #21977.

Change-Id: I177afff519b862a5c548e094203c219504852006
Reviewed-on: https://go-review.googlesource.com/65352
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/archive/tar/tar_test.go

index f844a9b9b2bc189d788cd3f70548afd5a2ce21d4..8d44f3bf65ab247c49eb8f1fb5a82446ef509ab7 100644 (file)
@@ -768,6 +768,9 @@ func TestHeaderAllowedFormats(t *testing.T) {
 }
 
 func TestSparseFiles(t *testing.T) {
+       if runtime.GOOS == "plan9" {
+               t.Skip("skipping test on plan9; see https://golang.org/issue/21977")
+       }
        // Only perform the tests for hole-detection on the builders,
        // where we have greater control over the filesystem.
        sparseSupport := testenv.Builder() != ""