File: 0001-skip-wycheproof_test.patch

package info (click to toggle)
golang-go.crypto 1%3A0.45.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,512 kB
  • sloc: asm: 22,954; ansic: 258; sh: 25; makefile: 11
file content (21 lines) | stat: -rw-r--r-- 697 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Anthony Fok <foka@debian.org>
Date: Thu, 17 Mar 2022 01:19:16 +0800
Subject: Skip wycheproof_test.go to prevent network access

Origin: vendor
Forwarded: not-needed
---
 internal/wycheproof/wycheproof_test.go | 3 +++
 1 file changed, 3 insertions(+)

--- a/internal/wycheproof/wycheproof_test.go
+++ b/internal/wycheproof/wycheproof_test.go
@@ -29,6 +29,8 @@
 var wycheproofTestVectorsDir string
 
 func TestMain(m *testing.M) {
+	log.Printf("skipping test to prevent network access during Debian build")
+	os.Exit(0)
 	flag.Parse()
 	if flag.Lookup("test.short").Value.(flag.Getter).Get().(bool) {
 		log.Println("skipping test that downloads testdata via 'go mod download' in short mode")