--- old/test/hotspot/jtreg/runtime/SharedArchiveFile/serviceability/transformRelatedClasses/TransformTestCommon.java 2018-08-09 13:43:57.289806328 -0700 +++ new/test/hotspot/jtreg/runtime/SharedArchiveFile/serviceability/transformRelatedClasses/TransformTestCommon.java 2018-08-09 13:43:57.173806331 -0700 @@ -1,5 +1,5 @@ /* - * 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 @@ -23,6 +23,7 @@ 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 @@ -101,8 +102,10 @@ // 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('.', '/');