--- old/test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/PatchDir.java 2018-04-02 14:11:55.839504772 -0700 +++ new/test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/PatchDir.java 2018-04-02 14:11:55.569479328 -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 @@ -67,7 +67,7 @@ "--patch-module=java.naming=" + moduleJar, "-Xlog:class+load", "PatchMain", "javax.naming.spi.NamingManager") - .shouldContain("Loading classes to share") - .shouldHaveExitValue(0); + .shouldContain("Cannot use the following option when dumping the shared archive: --patch-module") + .shouldHaveExitValue(1); } }