summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2009-11-24Change to container/vector interface:Robert Griesemer1-11/+11
- removed New(len int) in favor of new(Vector).Resize(len, cap) - removed Init(len int) in favor of Resize(len, cap) - runs all.bash Fixes issue 294. R=rsc, r, r1 http://codereview.appspot.com/157143
2009-11-24chameneosredux test modified, bug fixed, fasterRoger Peppe1-133/+106
based on suggestion from arvindht@gmail.com R=r, rsc, r1 http://codereview.appspot.com/157091 Committer: Russ Cox <rsc@golang.org>
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-1/+1
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w test/benchRuss Cox14-261/+255
except chameneosredux which i know is being edited require gofmt for test/bench R=r http://codereview.appspot.com/157110
2009-11-20x[y:] for stringsRuss Cox1-1/+1
R=ken2 http://codereview.appspot.com/157114
2009-11-20x[lo:] - gc and runtime.Russ Cox2-0/+16
* add runtime sliceslice1 for x[lo:] * remove runtime arraytoslice, rewriting &arr into arr[0:len(arr)]. * port cgen_inline into 8g, 5g. * use native memmove in maps R=ken2 http://codereview.appspot.com/157106
2009-11-20test/bench revisions;Russ Cox3-28/+46
* reverse-complement: port C algorithm to Go saves 30% on my MacBook Pro and makes it a fairer comparison. * test reverse-complement with and without GC (another 15%) * revise timing.sh to work on more systems * avoid two glibcisms in fasta.c R=r http://codereview.appspot.com/156110
2009-11-19bug219: parsing difficulties with 6gRobert Griesemer2-0/+39
R=r, rsc http://codereview.appspot.com/157085
2009-11-18- flip in and out to exercise overlap check a little (could do better)Rob Pike1-25/+125
- actually test the results R=rsc, ken2 CC=golang-dev http://codereview.appspot.com/156094
2009-11-18test for copy()Rob Pike1-0/+193
R=rsc, ken2 CC=golang-dev http://codereview.appspot.com/156084
2009-11-18remove bytes.CopyRob Pike2-71/+69
replace all calls with calls to copy use copy in regexp and bytes.Buffer R=rsc CC=golang-dev http://codereview.appspot.com/157073
2009-11-16bug218.go: testcase for issue 238Robert Griesemer2-0/+27
R=rsc http://codereview.appspot.com/154172
2009-11-15gc: fix up floating point NaN comparisonsRuss Cox2-4/+92
Fixes issue 167. R=ken2 http://codereview.appspot.com/155062
2009-11-15gc: five bug fixes, one better error.Russ Cox5-1/+75
* check for struct literal assignment to private fields. * record, fix crash involving parallel map assignment. * avoid infinite recursion in exportassignok. * make floating point bounds check precise. * avoid crash on invalid receiver. * add context to error about implicit assignment. Fixes issue 86. Fixes issue 88. Fixes issue 158. Fixes issue 174. Fixes issue 201. Fixes issue 204. R=ken2 http://codereview.appspot.com/154144
2009-11-14make arm pass match what's working on real hardwareKai Backman1-41/+4
R=rsc http://codereview.appspot.com/154097
2009-11-14test/interface/receiver.go: expand to do dynamicRuss Cox1-0/+8
versions of static checks in receiver1.go R=r http://codereview.appspot.com/155045
2009-11-14Build changes to support work on the BSDs.Devon H. O'Dell1-1/+1
This does still contain some FreeBSD-specific bits, but it's a pain to do partial diffs. R=rsc http://codereview.appspot.com/152138 Committer: Russ Cox <rsc@golang.org>
2009-11-14move evaluation of null-matching instructions one iteration earlier.Rob Pike1-0/+8
performance hit of about 20% but more intuitive results for submatches. we need a good regexp package at some point. Fixes issue 110. R=rsc CC=golang-dev http://codereview.appspot.com/152131
2009-11-13test/run: use bash, not sh.Russ Cox1-2/+2
use bash builtin time instead of assuming /usr/bin/time exists. R=r http://codereview.appspot.com/152124
2009-11-12test/run: unset GREP_OPTIONSRuss Cox1-0/+1
Fixes issue 116. R=r http://codereview.appspot.com/152106
2009-11-09drop output from nilptr tests;Russ Cox12-70/+23
too hard to make it the same everywhere. still checking for non-zero exit status though. disable core files while running tests R=r http://go/go-review/1026037
2009-11-08bug212, bug213.Russ Cox3-7/+1
R=ken http://go/go-review/1026032
2009-11-08delete TODO now that compiler is better at %Rob Pike1-19/+1
adjust an inconsistency in reflect/type.go's package comment R=rsc http://go/go-review/1026029
2009-11-05 make 5g executables run on android/arm hardware. change OABIKai Backman1-1/+1
usage to EABI. go/test: passes 85% (296/347) on random android phone. R=rsc http://go/go-review/1024003
2009-11-05Cleaned up gccgo error messages require minor adjustment toIan Lance Taylor1-2/+2
test. const1.go:27: error: integer constant overflow const1.go:29: error: integer constant overflow const1.go:30: error: integer constant overflow const1.go:31: error: integer constant overflow const1.go:32: error: integer constant overflow const1.go:33: error: integer constant overflow const1.go:33: error: integer constant overflow const1.go:34: error: integer constant overflow const1.go:37: error: integer constant overflow const1.go:38: error: integer constant overflow const1.go:40: error: integer constant overflow const1.go:41: error: integer constant overflow const1.go:43: error: integer constant overflow const1.go:44: error: integer constant overflow const1.go:45: error: integer constant overflow const1.go:48: error: integer constant overflow const1.go:50: error: integer constant overflow const1.go:51: error: integer constant overflow const1.go:52: error: integer constant overflow const1.go:53: error: integer constant overflow const1.go:55: error: integer constant overflow const1.go:56: error: division by zero const1.go:59: error: floating point constant overflow const1.go:61: error: floating point constant overflow const1.go:62: error: division by zero const1.go:47: error: integer constant overflow const1.go:49: error: integer constant overflow const1.go:60: error: floating point constant overflow const1.go:68: error: argument 1 has incompatible type (cannot use type int8 as type int) const1.go:69: error: argument 1 has incompatible type (cannot use type int8 as type int) const1.go:70: error: argument 1 has incompatible type (cannot use type uint8 as type int) const1.go:72: error: argument 1 has incompatible type (cannot use type float32 as type int) const1.go:73: error: argument 1 has incompatible type (cannot use type float as type int) const1.go:74: error: floating point constant truncated to integer const1.go:76: error: argument 1 has incompatible type (cannot use type float64 as type int) const1.go:77: error: argument 1 has incompatible type const1.go:78: error: argument 1 has incompatible type R=rsc http://go/go-review/1022001
2009-11-02Set LANG to control sorting. This affects the order in whichIan Lance Taylor1-0/+1
tests are processed, and thus the run.out output. The default LANG on Fedora 10, en_US.utf8, causes the tests to be sorted differently--e.g., arrayindex1.go and arrayindex.go are sorted in the opposite order. R=r, rsc http://go/go-review/1018022
2009-11-02We should not silently permit a named type to match an unnamedIan Lance Taylor1-2/+2
type. This is OK in a conversion but not in an assignment. R=rsc http://go/go-review/1016024
2009-11-02use the new routine regexp.MustCompile to clean up some code that uses ↵Rob Pike1-12/+3
global regexps. R=rsc, gri CC=go-dev http://go/go-review/1016025
2009-11-02Recognize gccgo error message.Ian Lance Taylor1-1/+1
runtime.go:19:10: error: reference to undefined identifier ‘runtime.printbool’ R=rsc http://go/go-review/1018018
2009-11-02cleaning up bug132Robert Griesemer1-69/+0
R=rsc http://go/go-review/1017012
2009-11-01nil pointer checks in 8g.Russ Cox1-1/+1
fix nil pointer check in 6g. was dereferencing after the ADD; dereference before instead. R=ken@golang.org CC=iant http://go/go-review/1016022
2009-10-29clone and futexKai Backman1-0/+8
go/test: passes 99% (343/347) R=rsc http://go/go-review/1016004
2009-10-29Bug: 6g accepts fallthrough in type switch.Ian Lance Taylor2-0/+19
R=r CC=go-dev http://go/go-review/1016006
2009-10-28Test that the compiler rejects map types which should not beIan Lance Taylor2-0/+15
compatible. R=rsc CC=go-dev http://go/go-review/1018001
2009-10-26Recognize gccgo error messages.Ian Lance Taylor1-3/+3
rename1.go:10:8: error: expected type rename1.go:11:10: error: expected function rename1.go:13:8: error: incompatible types in binary expression R=rsc http://go/go-review/1015013
2009-10-25 make 5l ignore multiple defs, remove use of multipleKai Backman1-1/+1
defs from embed1 and gotest R=rsc http://go/go-review/1014009
2009-10-24 fix conditional branch instructions for unsigned ints andKai Backman1-0/+13
float. fix sgen endianess in sgen character copying. go/test: passes 97% (336/345) R=rsc http://go/go-review/1015007
2009-10-23 fixed len/cap for chan. disable gc for now.Kai Backman1-0/+6
go/test: passes 93% (323/345) R=rsc http://go/go-review/1015006
2009-10-23one more argsize fix. we were copying with the correctKai Backman1-2/+15
alignment but not enough (duh). R=rsc APPROVED=rsc DELTA=16 (13 added, 0 deleted, 3 changed) OCL=36020 CL=36024
2009-10-22fix build after Mercurial move.Russ Cox1-16/+19
various missing or incorrect files. R=r CC=go-dev http://go/go-review/1014004
2009-10-21Match gccgo error messages.Ian Lance Taylor1-2/+2
bug205.go:14:12: error: index must be integer bug205.go:15:12: error: index must be integer bug205.go:16:12: error: incompatible type for map index R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=35957 CL=35960
2009-10-20gccgo does not distinguish "use" and "assign" in these errorIan Lance Taylor1-4/+4
messages. Match gccgo output. named1.go:32:2: error: argument 0 has wrong type (cannot use type bool as type Bool) named1.go:33:2: error: argument 0 has wrong type (cannot use type bool as type Bool) named1.go:35:5: error: incompatible type for map index (cannot use type bool as type Bool) named1.go:36:12: error: incompatible type for map assignment (cannot use type Bool as type bool) named1.go:38:5: error: incompatible types in assignment (cannot use type bool as type Bool) named1.go:40:2: error: argument 0 has wrong type (cannot use type bool as type Bool) named1.go:42:5: error: incompatible type for receive (cannot use type bool as type Bool) named1.go:46:5: error: incompatible type for type guard (cannot use type bool as type Bool) named1.go:50:5: error: incompatible type for type guard (cannot use type bool as type Bool) named1.go:53:2: error: argument 0 has wrong type (cannot use type bool as type Bool) named1.go:54:5: error: incompatible types in assignment (cannot use type bool as type Bool) R=rsc DELTA=4 (0 added, 0 deleted, 4 changed) OCL=35943 CL=35943
2009-10-20address bug193 and add note to spec about it.Russ Cox4-5/+5
R=ken OCL=35920 CL=35920
2009-10-20bug162, over and overRuss Cox12-6/+362
R=ken OCL=35919 CL=35919
2009-10-20forgot to include in 35898.Russ Cox1-0/+29
R=ken OCL=35917 CL=35917
2009-10-19removed tempalloc/tempfree and replaced with tempnameKai Backman1-2/+3
go/test: passes 88% (304/345) R=rsc APPROVED=rsc DELTA=67 (3 added, 54 deleted, 10 changed) OCL=35910 CL=35910
2009-10-19getcallerpc and setcallerpcKai Backman1-2/+5
go/test: passes 87% (303/345) R=rsc APPROVED=rsc DELTA=19 (5 added, 6 deleted, 8 changed) OCL=35903 CL=35906
2009-10-19bug196Russ Cox2-5/+0
R=ken OCL=35905 CL=35905
2009-10-19bug136Russ Cox2-3/+0
R=ken OCL=35902 CL=35904
2009-10-19first version of closures. test/closure doesn't yet pass.Kai Backman1-0/+3
go/test: passes 87% (300/343) R=rsc APPROVED=rsc DELTA=125 (125 added, 0 deleted, 0 changed) OCL=35893 CL=35900