< prev index next >

test/hotspot/jtreg/applications/jcstress/TestGenerator.java

Print this page
@@ -39,11 +39,11 @@
  import java.util.EnumSet;
  import java.util.function.Predicate;
  
  
  /**
-  * @notest THIS IS NOT A TEST.
+  * @test THIS IS NOT A TEST.
   * This is a test generator, should be run only when jcstress is changed
   *
   * @library /test/lib /
   * @run main applications.jcstress.TestGenerator
   */

@@ -96,12 +96,12 @@
      public static String DESC_FORMAT = "\n"
              + "/**\n"
              + " * @test %1$s\n"
              + " * @library /test/lib /\n"
              + " * @run driver/timeout=21600 " + JcstressRunner.class.getName()
-                     // verbose output
-                     + " -v"
+                     // verbose output, testing in virtual threads
+                     + " -v -vt -spinStyle LOCKSUPPORT_PARK_NANOS -f 0"
                      // test name
                      + " -t org.openjdk.jcstress.tests.%1$s\\.\n"
              + " */\n";
  
      public static void main(String[] args) throws IOException {

@@ -120,11 +120,11 @@
          }
  
          BufferedReader reader = Files.newBufferedReader(output);
  
          reader.lines()
-                 .skip(4) // skip first 4 lines: name, -{80}, revision and empty line
+                 .skip(6) // skip first 6 lines: name, -{80}, revision CPU info and empty line
                  .map(s -> s.split("\\.")[4]) // group by the package name following "org.openjdk.jcstress.tests."
                  .distinct()
                  .filter(s -> !s.startsWith("sample")) // skip sample test
                  .forEach(TestGenerator::generate);
  
< prev index next >