-
Bug
-
Resolution: Fixed
-
P4
-
11, 17, 21, 22
-
b16
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8323349 | 21.0.3-oracle | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
JDK-8319688 | 21.0.2 | Goetz Lindenmaier | P4 | Resolved | Fixed | b07 |
JDK-8317033 | 17.0.10-oracle | Leo Korinth | P4 | Resolved | Fixed | b01 |
JDK-8319752 | 17.0.10 | Goetz Lindenmaier | P4 | Resolved | Fixed | b03 |
JDK-8322009 | 11.0.23 | Amos SHI | P4 | Resolved | Fixed | b01 |
JDK-8317032 | 11.0.22-oracle | Leo Korinth | P4 | Resolved | Fixed | b01 |
I now have a reproducer for something that has puzzled me before (and most of my co-workers I think):
// first test uses -XX:+UseG1GC second and third uses -XX:+UseG1GCC (sic)
`make clean run-test TEST=open/test/hotspot/jtreg/gc/arguments/TestCompressedClassFlags.java JTREG='JAVA_OPTIONS=-XX:+UseG1GC'` -> OK
`make run-test TEST=open/test/hotspot/jtreg/gc/arguments/TestCompressedClassFlags.java JTREG='JAVA_OPTIONS=-XX:+UseG1GCC'` -> OK
`rm -rf test-results/jtreg_open_test_hotspot_jtreg_gc_arguments_TestCompressedClassFlags_java`
`make run-test TEST=open/test/hotspot/jtreg/gc/arguments/TestCompressedClassFlags.java JTREG='JAVA_OPTIONS=-XX:+UseG1GCC'` -> FAIL
The problem is that the success of the first test run seems to be cached and the second test-run seems to reuse the result of the first run.
This seems to fix the problem:
```
diff --git a/make/RunTests.gmk b/make/RunTests.gmk
index 25dcdbb083d..489c3f839f8 100644
--- a/make/RunTests.gmk
+++ b/make/RunTests.gmk
@@ -864,6 +864,7 @@ define SetupRunJtregTestBody
clean-workdir-$1:
$$(RM) -r $$($1_TEST_SUPPORT_DIR)
+ $$(RM) -r $$($1_TEST_RESULTS_DIR)
$1_COMMAND_LINE := \
$$(JAVA) $$($1_JTREG_LAUNCHER_OPTIONS) \
```
- backported by
-
JDK-8317032 Fix: make test outputs TEST SUCCESS after unsuccessful exit
- Resolved
-
JDK-8317033 Fix: make test outputs TEST SUCCESS after unsuccessful exit
- Resolved
-
JDK-8319688 Fix: make test outputs TEST SUCCESS after unsuccessful exit
- Resolved
-
JDK-8319752 Fix: make test outputs TEST SUCCESS after unsuccessful exit
- Resolved
-
JDK-8322009 Fix: make test outputs TEST SUCCESS after unsuccessful exit
- Resolved
-
JDK-8323349 Fix: make test outputs TEST SUCCESS after unsuccessful exit
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/b3d7b57a
-
Commit openjdk/jdk17u-dev/a4fe7ac1
-
Commit openjdk/jdk21u/421bf8a6
-
Commit openjdk/jdk/e30e3564
-
Review openjdk/jdk11u-dev/2335
-
Review openjdk/jdk17u-dev/1953
-
Review openjdk/jdk21u/187
-
Review openjdk/jdk21u/334
-
Review openjdk/jdk/15820