summaryrefslogtreecommitdiff
path: root/development/google-go-lang/runtime-test-capture.patch
diff options
context:
space:
mode:
authorVincent Batts <vbatts@gmail.com>2014-05-08 06:58:15 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-05-12 07:35:53 +0700
commit8c3215a4d5db684b5d758ebff45852e232df4278 (patch)
tree6d6a1b8afacb0f05ca8c01b818fa06d5e9ca6f8e /development/google-go-lang/runtime-test-capture.patch
parent8599a471729f5a0f695971f6dfb4a2f886d65a9c (diff)
downloadslackbuilds-8c3215a4d5db684b5d758ebff45852e232df4278.tar.gz
development/google-go-lang: Updated for version 1.2.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/google-go-lang/runtime-test-capture.patch')
-rw-r--r--development/google-go-lang/runtime-test-capture.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/development/google-go-lang/runtime-test-capture.patch b/development/google-go-lang/runtime-test-capture.patch
new file mode 100644
index 0000000000..a24284362b
--- /dev/null
+++ b/development/google-go-lang/runtime-test-capture.patch
@@ -0,0 +1,29 @@
+diff -r 9c4fdd8369ca src/pkg/runtime/crash_cgo_test.go
+--- a/src/pkg/runtime/crash_cgo_test.go Mon May 05 10:43:37 2014 -0700
++++ b/src/pkg/runtime/crash_cgo_test.go Tue May 06 17:21:45 2014 -0400
+@@ -8,6 +8,7 @@
+
+ import (
+ "runtime"
++ "strings"
+ "testing"
+ )
+
+@@ -21,7 +22,7 @@
+ }
+ got := executeTest(t, cgoSignalDeadlockSource, nil)
+ want := "OK\n"
+- if got != want {
++ if !strings.Contains(got, want) {
+ t.Fatalf("expected %q, but got %q", want, got)
+ }
+ }
+@@ -29,7 +30,7 @@
+ func TestCgoTraceback(t *testing.T) {
+ got := executeTest(t, cgoTracebackSource, nil)
+ want := "OK\n"
+- if got != want {
++ if !strings.Contains(got, want) {
+ t.Fatalf("expected %q, but got %q", want, got)
+ }
+ }