File: 03-skip-TestOpenByHandleAt-if-openMountByID-fails.patch

package info (click to toggle)
golang-golang-x-sys 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports, bookworm-proposed-updates, experimental, sid
  • size: 10,028 kB
  • sloc: asm: 5,361; sh: 920; ansic: 51; makefile: 3
file content (23 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Skip TestOpenByHandleAt if openMountByID fails
 Prevent TestOpenByHandleAt from failing under pbuilder chroots.
 Thanks to Gianfranco Costamagna <locutusofborg@debian.org>
 for providing an initial patch.
Author: Anthony Fok <foka@debian.org>
Origin: vendor
Bug-Debian: https://bugs.debian.org/935935
Forwarded: not-needed
Last-Update: 2020-02-21
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/unix/syscall_linux_test.go
+++ b/unix/syscall_linux_test.go
@@ -556,7 +556,8 @@
 		h.Size(), h.Type(), h.Bytes())
 	mount, err := openMountByID(mountID)
 	if err != nil {
-		t.Fatalf("openMountByID: %v", err)
+		// t.Fatalf changed to t.Skipf to prevent FAIL under pbuilder
+		t.Skipf("openMountByID: %v", err)
 	}
 	defer mount.Close()