From 578f24d5321401b9bb8686fa5e968c8bc63b89f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9my=20Oudompheng?= Date: Fri, 11 Jan 2013 22:42:55 +0100 Subject: [PATCH] test: add rotate.go and fixedbugs/bug313 Update #4139. R=golang-dev, iant CC=golang-dev https://golang.org/cl/7094047 --- test/fixedbugs/bug313.go | 5 +---- test/rotate.go | 15 +++++---------- test/rotate0.go | 12 ++++++++++++ test/rotate1.go | 12 ++++++++++++ test/rotate2.go | 12 ++++++++++++ test/rotate3.go | 12 ++++++++++++ test/run.go | 2 -- 7 files changed, 54 insertions(+), 16 deletions(-) create mode 100644 test/rotate0.go create mode 100644 test/rotate1.go create mode 100644 test/rotate2.go create mode 100644 test/rotate3.go diff --git a/test/fixedbugs/bug313.go b/test/fixedbugs/bug313.go index 9009c5e8ff..a7c1d3627b 100644 --- a/test/fixedbugs/bug313.go +++ b/test/fixedbugs/bug313.go @@ -1,7 +1,4 @@ -// errchk $G -e $D/$F.dir/[ab].go - -// NOTE: This test is not run by 'run.go' and so not run by all.bash. -// To run this test you must use the ./run shell script. +// errorcheckdir // Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/test/rotate.go b/test/rotate.go index aa334b4218..1d7149702a 100644 --- a/test/rotate.go +++ b/test/rotate.go @@ -1,9 +1,6 @@ -// $G $D/$F.go && $L $F.$A && -// ./$A.out >tmp.go && $G tmp.go && $L -o $A.out1 tmp.$A && ./$A.out1 -// rm -f tmp.go $A.out1 +// skip -// NOTE: This test is not run by 'run.go' and so not run by all.bash. -// To run this test you must use the ./run shell script. +// NOTE: the actual tests to run are rotate[0123].go // Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style @@ -12,8 +9,8 @@ // Generate test of shift and rotate by constants. // The output is compiled and run. // -// The output takes around a gigabyte of memory to compile, link, and run -// but it is only done during ./run, not in normal builds using run.go. +// The integer type depends on the value of mode (rotate direction, +// signedness). package main @@ -37,9 +34,7 @@ func main() { typ := fmt.Sprintf("int%d", 1<