summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* build: remove unnecessary references to GOBIN and GOROOTChristian Himpel2010-08-303-9/+6
| | | | | | | | | | | All scripts and makefiles assume that GOBIN is correctly set in PATH. R=rsc CC=golang-dev http://codereview.appspot.com/2043041 Committer: Russ Cox <rsc@golang.org>
* test: Add testcase which crashes gccgo.Ian Lance Taylor2010-08-241-0/+18
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1995050
* build: no required environment variablesRuss Cox2010-08-184-4/+6
| | | | | | R=adg, r, PeterGo CC=golang-dev http://codereview.appspot.com/1942044
* test/garbage: do not try to parse package bignum, which is gone.Russ Cox2010-08-161-1/+0
| | | | | | | | Fixes issue 1023. R=gri CC=golang-dev http://codereview.appspot.com/1968043
* delete pkg/onceRob Pike2010-08-131-1/+0
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1995041
* update the tree to use the new regexp methodsRob Pike2010-08-122-3/+3
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1983043
* 6g, 8g: handle slice by sub-word-sized index (uint8, int8, uint16, int16)Russ Cox2010-08-111-0/+37
| | | | | | R=ken2 CC=golang-dev http://codereview.appspot.com/1960042
* gopack: handle long lines in export dataRuss Cox2010-08-113-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, if the header is bad, exit with a non-zero status. Other calls to Brdline in the tree, by category: Reading symbol name from object file: ./cmd/5l/obj.c:486: name = Brdline(f, '\0'); ./cmd/6l/obj.c:535: name = Brdline(f, '\0'); ./cmd/8l/obj.c:564: name = Brdline(f, '\0'); ./libmach/sym.c:292: cp = Brdline(bp, '\0'); Reading archive header line (fixed, short): ./cmd/gc/lex.c:287: if((a = Brdline(b, '\n')) == nil) ./cmd/gc/lex.c:303: if((p = Brdline(b, '\n')) == nil) Reading object file header line (fixed, short): ./cmd/ld/lib.c:421: line = Brdline(f, '\n'); Reading undefined symbol list (unused code): ./cmd/ld/lib.c:773: while((l = Brdline(b, '\n')) != nil){ Implementing Brdstr: ./libbio/brdstr.c:36: p = Brdline(bp, delim); The symbol names ones will cause a problem loudly if they fail: they'll error out with symbol name too long. This means that you can't define an enormous struct without giving the type a name and then stick it in an interface, because the type's symbol name will be too long for the object file. Since this will be a loud failure instead of a silent one, I'm willing to wait until it comes up in practice. R=r CC=golang-dev http://codereview.appspot.com/1982041
* gc: bug302Russ Cox2010-08-103-0/+1024
| | | | | | | | | Fixed by http://code.google.com/p/go/source/detail?r=d1f41e20a90e This just adds a test and checks the return value of Bprint. R=ken2 CC=golang-dev http://codereview.appspot.com/1949042
* arm: bugfixes and syscallKai Backman2010-08-061-2/+2
| | | | | | | | | | | | | - integer divide by zero raises panic - float comparisons involving NaNs work - syscall interface actually handles return values and errno correctly. R=rsc, bradfitzpatrick CC=golang-dev http://codereview.appspot.com/1847047 Committer: Russ Cox <rsc@golang.org>
* test/peano: use directly recursive type defRobert Griesemer2010-08-061-9/+4
| | | | | | | | | | Test case for http://code.google.com/p/go/issues/detail?id=999 R=r CC=golang-dev http://codereview.appspot.com/1892050 Committer: Robert Griesemer <gri@golang.org>
* bikeshed: only output bug when we have a regressionKai Backman2010-08-031-0/+4
| | | | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1897046 Committer: Russ Cox <rsc@golang.org>
* test/run: diff old newRuss Cox2010-08-032-2/+2
| | | | | | R=r, iant CC=golang-dev http://codereview.appspot.com/1907046
* gc: empty selectRuss Cox2010-08-031-31/+26
| | | | | | R=ken2 CC=golang-dev http://codereview.appspot.com/1871057
* gc: bug301Russ Cox2010-08-031-0/+18
| | | | | | | | Fixes issue 990. R=ken2 CC=golang-dev http://codereview.appspot.com/1742055
* gc: bug299, bug300Russ Cox2010-08-034-45/+33
| | | | | | R=ken2 CC=golang-dev http://codereview.appspot.com/1731057
* gc: index bounds tests and fixesRuss Cox2010-08-032-1/+227
| | | | | | | | | move constant index checking to front end x[2:1] is a compile-time error now too R=ken2 CC=golang-dev http://codereview.appspot.com/1848056
* arm: disable another flaky test.Kai Backman2010-07-301-2/+2
| | | | | | | | | these tests work fine on n1 and gumstix. it's unclear why they keep failing on the godashboard build. R=rsc CC=golang-dev http://codereview.appspot.com/1664056
* fix buildKai Backman2010-07-301-4/+4
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1913042
* arm: bugfixes (stack clobbering, indices)Kai Backman2010-07-303-33/+21
| | | | | | | | also changed zerodivide to output "BUG" R=rsc CC=golang-dev http://codereview.appspot.com/1871055
* bug300: literal types must not be parenthesizedRobert Griesemer2010-07-292-0/+32
| | | | | | | | | ( This CL is dependent on acceptance of http://codereview.appspot.com/1913041/show ) R=go-dev CC=golang-dev http://codereview.appspot.com/1860045
* go_spec: don't allow parens around the literal type of composite literalsRobert Griesemer2010-07-291-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Background: The current spec is imprecise with respect to the parsing ambiguity for composite literals: It says that the ambiguity arises when the TypeName form of the LiteralType is used. The following code: if (B) {} ... is not using the TypeName form (but the parenthesized TypeName form) and thus could be interpreted as: if ((B){}) ... instead of if B {} ... Both compilers and gofmt choose the latter interpretation. One could fix the spec by making the clause regarding the parsing ambiguity more precise ("...using the _possibly parenthesized_ TypeName form of the LiteralType..."). The alternative (chosen here) is to simply disallow parenthesized literal types. Except for a single test case (test/parentype.go) there appears to be no Go code under $GOROOT containing parenthesized literal types. Furthermore, parentheses are never needed around a literal type for correct parsing. R=golang-dev CC=golang-dev http://codereview.appspot.com/1913041
* bug299: parenthesized receiver types/anonymous fields are illegalRobert Griesemer2010-07-292-0/+36
| | | | | | R=r CC=golang-dev http://codereview.appspot.com/1846051
* test/sigchld.go: use syscall.Kill instead of a combinationVinu Rajashekhar2010-07-281-1/+1
| | | | | | | | | | | | | | of syscall.Syscall and syscall.SYS_KILL. In RTEMS, there is no syscall.Syscall support, but it does support POSIX signals. So, if this testcase is changed to use syscall.Kill, then it would run fine on RTEMS, when using gccgo. R=rsc, iant CC=golang-dev http://codereview.appspot.com/1863046 Committer: Russ Cox <rsc@golang.org>
* arm: fix build (dodgy floats)Kai Backman2010-07-282-23/+3
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1907041
* arm: minor bugfixes.Kai Backman2010-07-283-31/+80
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1692057
* gc: more crash avoidanceRuss Cox2010-07-262-0/+26
| | | | | | | | | Fixes issue 961. Fixes issue 962. R=ken2 CC=golang-dev http://codereview.appspot.com/1903043
* gc: fix smaller-than-pointer-sized receivers in interfacesRuss Cox2010-07-261-0/+82
| | | | | | | | Fixes issue 812. R=ken2 CC=golang-dev http://codereview.appspot.com/1904041
* gc: import dot shadowing bugRuss Cox2010-07-261-0/+17
| | | | | | R=ken2 CC=golang-dev http://codereview.appspot.com/1873047
* test: fail is for bad exit status onlyRuss Cox2010-07-221-1/+0
| | | | | | R=kaib CC=golang-dev http://codereview.appspot.com/1847043
* arm: fic build3, disable flaky 64 bit testKai Backman2010-07-211-1/+1
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1888041
* arm: fix build2, tweak test/nul1.go arm exclusionKai Backman2010-07-211-1/+1
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1866044
* arm: fix build by disabling list copying optimization for 5g.Kai Backman2010-07-211-2/+2
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1697053
* fix buildKai Backman2010-07-201-1/+1
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1742048
* more soft float support. passes several basic testsKai Backman2010-07-209-67/+178
| | | | | | | | | | | | but with less precision than hardware counterparts. fixed a number of tests to output BUG when they failed. changed the runner to distinghuish between output and output containing ^BUG R=rsc CC=dho, golang-dev http://codereview.appspot.com/1778041
* gc: bug294Russ Cox2010-07-151-0/+79
| | | | | | | | Fixes issue 800. R=ken2 CC=golang-dev http://codereview.appspot.com/1855043
* gc: bug293Russ Cox2010-07-151-0/+37
| | | | | | | | Fixes issue 846. R=ken2 CC=golang-dev http://codereview.appspot.com/1862042
* gc: bug292Russ Cox2010-07-151-0/+22
| | | | | | | | Fixes issue 843. R=ken2 CC=golang-dev http://codereview.appspot.com/1729051
* gc: bug291Russ Cox2010-07-152-3/+23
| | | | | | | | Fixes issue 915. R=ken2 CC=golang-dev http://codereview.appspot.com/1856042
* gc: bug274Russ Cox2010-07-151-0/+0
| | | | | | R=ken2 CC=golang-dev http://codereview.appspot.com/1742044
* gc: fix handling of types inside function bodiesRuss Cox2010-07-153-7/+15
| | | | | | | | | Fixes issue 849. Fixes issue 920. R=ken2 CC=golang-dev http://codereview.appspot.com/1841042
* channel tests: added a couple of tests with closed channelsRobert Griesemer2010-07-141-1/+33
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1774047
* select statement: initial set of test cases for corner casesRobert Griesemer2010-07-141-0/+176
| | | | | | | | R=r, rsc CC=golang-dev http://codereview.appspot.com/1772043 Committer: Robert Griesemer <gri@golang.org>
* fix buildRobert Griesemer2010-07-121-1/+2
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1815042
* test/fixedbugs/bug243.go: instead of closing stdout,Vinu Rajashekhar2010-07-121-4/+0
| | | | | | | | | | | | | | | | | | | | remove the print statements. This change is because of the port of gccgo to RTEMS. These tests use the GCC DejaGNU framework. In some cases, the tests need to be run on qemu where the status code cannot be sent back to DejaGNU, so it prints the exit status by putting a wrapper around the exit and abort calls. This testcase closes the stdout, and hence prohibits DejaGNU from knowing the status in such cases, and causes this test to be wrongly declared as a failure. R=rsc, iant CC=golang-dev http://codereview.appspot.com/1792042 Committer: Russ Cox <rsc@golang.org>
* Test case that gccgo fails (crashes rather than printing error).Ian Lance Taylor2010-07-121-0/+26
| | | | | | R=rsc CC=Raj_, golang-dev http://codereview.appspot.com/1740044
* gc: implement new len spec, range bug fix, optimizationRuss Cox2010-07-011-2/+197
| | | | | | | | Fixes issue 885. R=ken2 CC=golang-dev http://codereview.appspot.com/1680048
* test: override gcc bug when preparing complex divide tablesRuss Cox2010-06-302-8/+30
| | | | | | R=iant CC=golang-dev http://codereview.appspot.com/1666048
* 8g: out of register bug fixRuss Cox2010-06-302-0/+29
| | | | | | | | Fixes issue 868. R=ken2 CC=golang-dev http://codereview.appspot.com/1695049
* gc: fix crash for nested complex divisionRuss Cox2010-06-231-0/+6
| | | | | | R=ken2 CC=golang-dev http://codereview.appspot.com/1720043