hughesjr / rpms / golang

Forked from rpms/golang 5 years ago
Clone
Blob Blame History Raw
From 25dd41f8dad8752cc1016e3160844d8d2bee0635 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hr=C4=8Dka?= <thrcka@redhat.com>
Date: Thu, 11 Sep 2014 15:15:52 +0200
Subject: [PATCH] Disable test on i686 arch

---
 src/pkg/runtime/runtime_test.go | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/pkg/runtime/runtime_test.go b/src/pkg/runtime/runtime_test.go
index 5a9f52f..1f08604 100644
--- a/src/pkg/runtime/runtime_test.go
+++ b/src/pkg/runtime/runtime_test.go
@@ -178,6 +178,10 @@ func TestSetPanicOnFault(t *testing.T) {
 		t.Skip("skipping test on dragonfly/386")
 	}
 
+	if GOARCH == "386" {
+                t.Skip("skipping test on 386")
+        }
+
 	old := debug.SetPanicOnFault(true)
 	defer debug.SetPanicOnFault(old)
 
@@ -191,6 +195,10 @@ func testSetPanicOnFault(t *testing.T, addr uintptr) {
 		t.Skip("nacl doesn't seem to fault on high addresses")
 	}
 
+	if GOARCH == "386" {
+                t.Skip("skipping test on 386")
+        }
+
 	defer func() {
 		if err := recover(); err == nil {
 			t.Fatalf("did not find error in recover")
-- 
1.8.3.1