Skip to content

Commit ecf8bac

Browse files
committed
cmd/compile: run fmt test only in long mode
Update #26469 Change-Id: Id8b8d1c0db48374d5d3dc663a77187a73f60c9a5 Reviewed-on: https://go-review.googlesource.com/125037 Run-TryBot: Keith Randall <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: David Chase <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent b47927c commit ecf8bac

File tree

1 file changed

+31
-28
lines changed

1 file changed

+31
-28
lines changed

src/cmd/compile/fmt_test.go

+31-28
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ type File struct {
7373
}
7474

7575
func TestFormats(t *testing.T) {
76+
if testing.Short() {
77+
t.Skip("Skipping in short mode")
78+
}
7679
testenv.MustHaveGoBuild(t) // more restrictive than necessary, but that's ok
7780

7881
// process all directories
@@ -702,32 +705,32 @@ var knownFormats = map[string]string{
702705
"interface{} %v": "",
703706
"map[*cmd/compile/internal/gc.Node]*cmd/compile/internal/ssa.Value %v": "",
704707
"map[cmd/compile/internal/ssa.ID]uint32 %v": "",
705-
"reflect.Type %s": "",
706-
"rune %#U": "",
707-
"rune %c": "",
708-
"string %-*s": "",
709-
"string %-16s": "",
710-
"string %-6s": "",
711-
"string %.*s": "",
712-
"string %q": "",
713-
"string %s": "",
714-
"string %v": "",
715-
"time.Duration %d": "",
716-
"time.Duration %v": "",
717-
"uint %04x": "",
718-
"uint %5d": "",
719-
"uint %d": "",
720-
"uint %x": "",
721-
"uint16 %d": "",
722-
"uint16 %v": "",
723-
"uint16 %x": "",
724-
"uint32 %d": "",
725-
"uint32 %v": "",
726-
"uint32 %x": "",
727-
"uint64 %08x": "",
728-
"uint64 %d": "",
729-
"uint64 %x": "",
730-
"uint8 %d": "",
731-
"uint8 %x": "",
732-
"uintptr %d": "",
708+
"reflect.Type %s": "",
709+
"rune %#U": "",
710+
"rune %c": "",
711+
"string %-*s": "",
712+
"string %-16s": "",
713+
"string %-6s": "",
714+
"string %.*s": "",
715+
"string %q": "",
716+
"string %s": "",
717+
"string %v": "",
718+
"time.Duration %d": "",
719+
"time.Duration %v": "",
720+
"uint %04x": "",
721+
"uint %5d": "",
722+
"uint %d": "",
723+
"uint %x": "",
724+
"uint16 %d": "",
725+
"uint16 %v": "",
726+
"uint16 %x": "",
727+
"uint32 %d": "",
728+
"uint32 %v": "",
729+
"uint32 %x": "",
730+
"uint64 %08x": "",
731+
"uint64 %d": "",
732+
"uint64 %x": "",
733+
"uint8 %d": "",
734+
"uint8 %x": "",
735+
"uintptr %d": "",
733736
}

0 commit comments

Comments
 (0)