]> Cypherpunks repositories - gostls13.git/commit
exp/ssa/interp: (#6 of 5): test interpretation of SSA form of $GOROOT/test/*.go.
authorAlan Donovan <adonovan@google.com>
Thu, 21 Feb 2013 17:48:38 +0000 (12:48 -0500)
committerAlan Donovan <adonovan@google.com>
Thu, 21 Feb 2013 17:48:38 +0000 (12:48 -0500)
commitaa5aaabb0d18d21d97e9c98d7dfde4899a498335
treef73106a0e13ea4ab7f6e94345185104cc29d771a
parentdf93283d5694814efc97efd2132da11722d11523
exp/ssa/interp: (#6 of 5): test interpretation of SSA form of $GOROOT/test/*.go.

The interpreter's os.Exit now triggers a special panic rather
than kill the test process.  (It's semantically dubious, since
it will run deferred routines.)  Interpret now returns its
exit code rather than calling os.Exit.

Also:
- disabled parts of a few $GOROOT/tests via os.Getenv("GOSSAINTERP").
- remove unnecessary 'slots' param to external functions; they
  are never closures.

Most of the tests are disabled until go/types supports shifts.
They can be reenabled if you patch this workaround:
https://golang.org/cl/7312068

R=iant, bradfitz
CC=golang-dev, gri
https://golang.org/cl/7313062
src/pkg/exp/ssa/interp/external.go
src/pkg/exp/ssa/interp/external_unix.go
src/pkg/exp/ssa/interp/external_windows.go
src/pkg/exp/ssa/interp/interp.go
src/pkg/exp/ssa/interp/interp_test.go [new file with mode: 0644]
src/pkg/exp/ssa/interp/reflect.go
src/pkg/exp/ssa/interp/testdata/coverage.go [new file with mode: 0644]
test/blank.go
test/cmp.go
test/const.go
test/recover.go