]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.ssa] cmd/compile/internal/gc: fix tests on non-amd64
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 13 Jul 2015 20:57:16 +0000 (14:57 -0600)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 13 Jul 2015 21:27:44 +0000 (21:27 +0000)
Change-Id: Ibd6a59db2d5feea41a21fbea5c1a7fdd49238aa8
Reviewed-on: https://go-review.googlesource.com/12131
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>

src/cmd/compile/internal/gc/ssa_test.go

index bcc77255dcaaa9b1a0f59d7be43ccace962f6174..fbbba6d9cba1df8d1dcfa7089057562edf2049c7 100644 (file)
@@ -8,11 +8,18 @@ import (
        "bytes"
        "internal/testenv"
        "os/exec"
+       "runtime"
        "strings"
        "testing"
 )
 
+// Tests OANDAND and OOROR expressions and short circuiting.
+// TODO: move these tests elsewhere? perhaps teach test/run.go how to run them
+// with a new action verb.
 func TestShortCircuit(t *testing.T) {
+       if runtime.GOARCH != "amd64" {
+               t.Skipf("skipping SSA tests on %s for now", runtime.GOARCH)
+       }
        testenv.MustHaveGoBuild(t)
        var stdout, stderr bytes.Buffer
        cmd := exec.Command("go", "run", "testdata/short_ssa.go")