< prev index next > test/hotspot/jtreg/runtime/ErrorHandling/UncaughtNativeExceptionTest.java
Print this page
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
! * @test id
* @enablePreview
* @requires os.family == "windows"
* @library /test/lib
* @run testng UncaughtNativeExceptionTest
*/
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
! * @test
* @enablePreview
* @requires os.family == "windows"
* @library /test/lib
* @run testng UncaughtNativeExceptionTest
*/
@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 >