diff --git a/test/hotspot/jtreg/serviceability/sa/ClhsdbLauncher.java b/test/hotspot/jtreg/serviceability/sa/ClhsdbLauncher.java index bede07e2eb2..3fca418fff2 100644 --- a/test/hotspot/jtreg/serviceability/sa/ClhsdbLauncher.java +++ b/test/hotspot/jtreg/serviceability/sa/ClhsdbLauncher.java @@ -140,6 +140,7 @@ public class ClhsdbLauncher { for (String cmd : commands) { int index = commands.indexOf(cmd) + 1; OutputAnalyzer out = new OutputAnalyzer(parts[index]); + out.shouldNotMatch("Unrecognized command."); if (expectedStrMap != null) { List expectedStr = expectedStrMap.get(cmd);