< prev index next >

test/hotspot/jtreg/runtime/SharedArchiveFile/serviceability/transformRelatedClasses/TransformTestCommon.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -22,11 +22,10 @@
  */
 
 import jdk.test.lib.cds.CDSTestUtils;
 import jdk.test.lib.process.OutputAnalyzer;
 
-
 // This class contains methods common to all transformation test cases
 public class TransformTestCommon {
 
     // get parameters to an agent depending on the test case
     // these parameters will instruct the agent which classes should be

@@ -99,12 +98,11 @@
         throws Exception {
 
         // If we were not able to map an archive,
         // then do not perform other checks, since
         // there was no sharing at all
-        if (CDSTestUtils.isUnableToMap(out))
-            return;
+        CDSTestUtils.checkMappingFailure(out);
 
         String childVmName = child.replace('.', '/');
         String parentVmName = parent.replace('.', '/');
 
         CDSTestUtils.checkExec(out);
< prev index next >