hughesjr / rpms / golang

Forked from rpms/golang 5 years ago
Clone

Blame SOURCES/golang-1.3.1-disable-test-on-i686-arch.patch

f4f7d7
From 25dd41f8dad8752cc1016e3160844d8d2bee0635 Mon Sep 17 00:00:00 2001
f4f7d7
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hr=C4=8Dka?= <thrcka@redhat.com>
f4f7d7
Date: Thu, 11 Sep 2014 15:15:52 +0200
f4f7d7
Subject: [PATCH] Disable test on i686 arch
f4f7d7
f4f7d7
---
f4f7d7
 src/pkg/runtime/runtime_test.go | 8 ++++++++
f4f7d7
 1 file changed, 8 insertions(+)
f4f7d7
f4f7d7
diff --git a/src/pkg/runtime/runtime_test.go b/src/pkg/runtime/runtime_test.go
f4f7d7
index 5a9f52f..1f08604 100644
f4f7d7
--- a/src/pkg/runtime/runtime_test.go
f4f7d7
+++ b/src/pkg/runtime/runtime_test.go
f4f7d7
@@ -178,6 +178,10 @@ func TestSetPanicOnFault(t *testing.T) {
f4f7d7
 		t.Skip("skipping test on dragonfly/386")
f4f7d7
 	}
f4f7d7
 
f4f7d7
+	if GOARCH == "386" {
f4f7d7
+                t.Skip("skipping test on 386")
f4f7d7
+        }
f4f7d7
+
f4f7d7
 	old := debug.SetPanicOnFault(true)
f4f7d7
 	defer debug.SetPanicOnFault(old)
f4f7d7
 
f4f7d7
@@ -191,6 +195,10 @@ func testSetPanicOnFault(t *testing.T, addr uintptr) {
f4f7d7
 		t.Skip("nacl doesn't seem to fault on high addresses")
f4f7d7
 	}
f4f7d7
 
f4f7d7
+	if GOARCH == "386" {
f4f7d7
+                t.Skip("skipping test on 386")
f4f7d7
+        }
f4f7d7
+
f4f7d7
 	defer func() {
f4f7d7
 		if err := recover(); err == nil {
f4f7d7
 			t.Fatalf("did not find error in recover")
f4f7d7
-- 
f4f7d7
1.8.3.1
f4f7d7