]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: run fmt test only in long mode
authorKeith Randall <khr@golang.org>
Thu, 19 Jul 2018 20:19:54 +0000 (13:19 -0700)
committerKeith Randall <khr@golang.org>
Thu, 19 Jul 2018 20:34:04 +0000 (20:34 +0000)
Update #26469

Change-Id: Id8b8d1c0db48374d5d3dc663a77187a73f60c9a5
Reviewed-on: https://go-review.googlesource.com/125037
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/compile/fmt_test.go

index 531298a21641003755d14c5a825651a617d7ea68..eb2d3c1918c7e2de450736b7aedc841d040c8dc3 100644 (file)
@@ -73,6 +73,9 @@ type File struct {
 }
 
 func TestFormats(t *testing.T) {
+       if testing.Short() {
+               t.Skip("Skipping in short mode")
+       }
        testenv.MustHaveGoBuild(t) // more restrictive than necessary, but that's ok
 
        // process all directories
@@ -702,32 +705,32 @@ var knownFormats = map[string]string{
        "interface{} %v":                                  "",
        "map[*cmd/compile/internal/gc.Node]*cmd/compile/internal/ssa.Value %v": "",
        "map[cmd/compile/internal/ssa.ID]uint32 %v":                            "",
-       "reflect.Type %s":  "",
-       "rune %#U":         "",
-       "rune %c":          "",
-       "string %-*s":      "",
-       "string %-16s":     "",
-       "string %-6s":      "",
-       "string %.*s":      "",
-       "string %q":        "",
-       "string %s":        "",
-       "string %v":        "",
-       "time.Duration %d": "",
-       "time.Duration %v": "",
-       "uint %04x":        "",
-       "uint %5d":         "",
-       "uint %d":          "",
-       "uint %x":          "",
-       "uint16 %d":        "",
-       "uint16 %v":        "",
-       "uint16 %x":        "",
-       "uint32 %d":        "",
-       "uint32 %v":        "",
-       "uint32 %x":        "",
-       "uint64 %08x":      "",
-       "uint64 %d":        "",
-       "uint64 %x":        "",
-       "uint8 %d":         "",
-       "uint8 %x":         "",
-       "uintptr %d":       "",
+       "reflect.Type %s":                                                      "",
+       "rune %#U":                                                             "",
+       "rune %c":                                                              "",
+       "string %-*s":                                                          "",
+       "string %-16s":                                                         "",
+       "string %-6s":                                                          "",
+       "string %.*s":                                                          "",
+       "string %q":                                                            "",
+       "string %s":                                                            "",
+       "string %v":                                                            "",
+       "time.Duration %d":                                                     "",
+       "time.Duration %v":                                                     "",
+       "uint %04x":                                                            "",
+       "uint %5d":                                                             "",
+       "uint %d":                                                              "",
+       "uint %x":                                                              "",
+       "uint16 %d":                                                            "",
+       "uint16 %v":                                                            "",
+       "uint16 %x":                                                            "",
+       "uint32 %d":                                                            "",
+       "uint32 %v":                                                            "",
+       "uint32 %x":                                                            "",
+       "uint64 %08x":                                                          "",
+       "uint64 %d":                                                            "",
+       "uint64 %x":                                                            "",
+       "uint8 %d":                                                             "",
+       "uint8 %x":                                                             "",
+       "uintptr %d":                                                           "",
 }