8134432: [TESTBUG] Rewrite test/runtime/6888954/vmerrors.sh in Java

Reviewed-by: ddmitriev, ctornqvi, coleenp
This commit is contained in:
George Triantafillou 2015-10-07 11:37:46 -04:00
parent 75623819fd
commit 1ba9657a1c
4 changed files with 81 additions and 124 deletions

View file

@ -374,7 +374,7 @@ void controlled_crash(int how) {
char * const dataPtr = NULL; // bad data pointer
const void (*funcPtr)(void) = (const void(*)()) 0xF; // bad function pointer
// Keep this in sync with test/runtime/6888954/vmerrors.sh.
// Keep this in sync with test/runtime/ErrorHandling/ErrorHandler.java
switch (how) {
case 1: vmassert(str == NULL, "expected null");
case 2: vmassert(num == 1023 && *str == 'X',