mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8134432: [TESTBUG] Rewrite test/runtime/6888954/vmerrors.sh in Java
Reviewed-by: ddmitriev, ctornqvi, coleenp
This commit is contained in:
parent
75623819fd
commit
1ba9657a1c
4 changed files with 81 additions and 124 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue