From 1ca31d34fcba5e9861104402466b5dd4cccdbafd Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Thu, 5 Jan 2023 09:31:38 +0000 Subject: [PATCH] 8299657: sun/tools/jhsdb/SAGetoptTest.java fails after 8299470 Reviewed-by: clanger --- test/jdk/sun/tools/jhsdb/SAGetoptTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/jdk/sun/tools/jhsdb/SAGetoptTest.java b/test/jdk/sun/tools/jhsdb/SAGetoptTest.java index 5ca48c629a3..37da2631a6a 100644 --- a/test/jdk/sun/tools/jhsdb/SAGetoptTest.java +++ b/test/jdk/sun/tools/jhsdb/SAGetoptTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2023, 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 @@ -146,13 +146,13 @@ public class SAGetoptTest { // Bad options test String[] optionSet4 = {"-abd", "-c"}; - badOptionsTest(4, optionSet4, "Argument is expected for 'd'"); + badOptionsTest(4, optionSet4, "Successor argument without leading - is expected for 'd' but we got '-c'"); String[] optionSet5 = {"-exe", "bla", "--core"}; badOptionsTest(5, optionSet5, "Invalid option 'x'"); String[] optionSet6 = {"--exe", "--core", "bla_core"}; - badOptionsTest(6, optionSet6, "Argument is expected for 'exe'"); + badOptionsTest(6, optionSet6, "Successor argument without leading - is expected for 'exe' but we got '--core'"); String[] optionSet7 = {"--exe"}; badOptionsTest(7, optionSet7, "Argument is expected for 'exe'");