• Joel Sing's avatar
    tests/fixedbugs: make test for issue11656 run known instruction · 82a9d90e
    Joel Sing authored
    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: 's avatarIan Lance Taylor <iant@golang.org>
    82a9d90e
issue11656.go 1.61 KB