< prev index next >

test/hotspot/jtreg/runtime/ErrorHandling/UncaughtNativeExceptionTest.java

Print this page
@@ -20,11 +20,11 @@
   * or visit www.oracle.com if you need additional information or have any
   * questions.
   */
  
  /*
-  * @test id
+  * @test
   * @enablePreview
   * @requires os.family == "windows"
   * @library /test/lib
   * @run testng UncaughtNativeExceptionTest
   */

@@ -55,10 +55,11 @@
      @Test
      public void testNativeExceptionReporting() throws Exception {
          OutputAnalyzer output = ProcessTools.executeTestJava(
                  // executeTestJava doesn't seem to forward 'java.library.path'
                  "-Djava.library.path=" + System.getProperty("java.library.path"),
+                 "--enable-preview",
                  Crasher.class.getName());
  
          File hsErrFile = HsErrFileUtils.openHsErrFileFromOutput(output);
          Path hsErrPath = hsErrFile.toPath();
          assertTrue(Files.exists(hsErrPath));
< prev index next >