Skip to content

Commit 847fbab

Browse files
committed
8352654: [REDO] nsk/jvmti/ tests should fail when nsk_jvmti_setFailStatus() is called
Reviewed-by: amenkov, sspitsyn
1 parent 42db9ab commit 847fbab

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/hotspot/jtreg/ProblemList.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ vmTestbase/metaspace/gc/firstGC_99m/TestDescription.java 8208250 generic-all
167167
vmTestbase/metaspace/gc/firstGC_default/TestDescription.java 8208250 generic-all
168168

169169
vmTestbase/nsk/jvmti/scenarios/capability/CM03/cm03t001/TestDescription.java 8073470 linux-all
170+
vmTestbase/nsk/jvmti/scenarios/events/EM02/em02t006/TestDescription.java 8372206 generic-all
170171
vmTestbase/nsk/jvmti/InterruptThread/intrpthrd003/TestDescription.java 8288911 macosx-all
171172

172173
vmTestbase/jit/escape/LockCoarsening/LockCoarsening001.java 8148743 generic-all

test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/agent_tools.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -21,6 +21,7 @@
2121
* questions.
2222
*/
2323

24+
#include <stdio.h>
2425
#include <stdlib.h>
2526
#include <string.h>
2627

@@ -62,6 +63,9 @@ static volatile int currentAgentStatus = NSK_STATUS_PASSED;
6263

6364
void nsk_jvmti_setFailStatus() {
6465
currentAgentStatus = NSK_STATUS_FAILED;
66+
printf("Test failed by setFailStatus(). See log.");
67+
fflush(stdout);
68+
exit(97);
6569
}
6670

6771
int nsk_jvmti_isFailStatus() {

0 commit comments

Comments
 (0)