8216352: SA: ClhsdbLauncher should throw errors on Unrecognized commands
authorfmatte
Fri, 04 Oct 2019 07:54:57 +0100
changeset 58460 13f29c43b6c7
parent 58459 e25b317d0350
child 58461 26f0ed77734e
8216352: SA: ClhsdbLauncher should throw errors on Unrecognized commands Reviewed-by: cjplummer, sspitsyn
test/hotspot/jtreg/serviceability/sa/ClhsdbLauncher.java
--- a/test/hotspot/jtreg/serviceability/sa/ClhsdbLauncher.java	Thu Oct 03 18:59:56 2019 +0100
+++ b/test/hotspot/jtreg/serviceability/sa/ClhsdbLauncher.java	Fri Oct 04 07:54:57 2019 +0100
@@ -140,6 +140,7 @@
         for (String cmd : commands) {
             int index = commands.indexOf(cmd) + 1;
             OutputAnalyzer out = new OutputAnalyzer(parts[index]);
+            out.shouldNotMatch("Unrecognized command.");
 
             if (expectedStrMap != null) {
                 List<String> expectedStr = expectedStrMap.get(cmd);