< 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.

@@ -21,10 +21,11 @@
  * questions.
  */
 
 import jdk.test.lib.cds.CDSTestUtils;
 import jdk.test.lib.process.OutputAnalyzer;
+import jtreg.SkippedException;
 
 
 // This class contains methods common to all transformation test cases
 public class TransformTestCommon {
 

@@ -99,12 +100,14 @@
         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;
+        if (CDSTestUtils.isUnableToMap(out)) {
+            throw new SkippedException(CDSTestUtils.UnableToMapMsg);
+        }
+
 
         String childVmName = child.replace('.', '/');
         String parentVmName = parent.replace('.', '/');
 
         CDSTestUtils.checkExec(out);
< prev index next >