]> Cypherpunks repositories - gostls13.git/commit
tests/fixedbugs: make test for issue11656 run known instruction
authorJoel Sing <jsing@google.com>
Sun, 27 Sep 2015 18:39:01 +0000 (04:39 +1000)
committerIan Lance Taylor <iant@golang.org>
Mon, 28 Sep 2015 04:23:33 +0000 (04:23 +0000)
commit82a9d90eda1e1aba06883727756c1e4a06abe772
tree35be5327ee318e62cb859018e02a595eccb4f3a0
parentb7fa4f27ba0c127512f2c4808c628efe842ff660
tests/fixedbugs: make test for issue11656 run known instruction

As detailed in #11910, the current implementation attempts to execute an area
of memory with unknown content. If the memory is executable, the result is
unpredictable - instead, make the test deterministic by attempting to execute
an instruction that is known to trigger a trap on the given architecture.

The new implementation is written by iant@ and provided via #11910.

Update issue #11910

Change-Id: Ia698c36e0dd98a9d9d16a701f60f6748c6faf896
Reviewed-on: https://go-review.googlesource.com/15058
Run-TryBot: Joel Sing <jsing@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
test/fixedbugs/issue11656.go