8216352: SA: ClhsdbLauncher should throw errors on Unrecognized commands

Reviewed-by: cjplummer, sspitsyn
This commit is contained in:
Fairoz Matte 2019-10-04 07:54:57 +01:00
parent 4dafa3033f
commit 80d6ffee5f

@ -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<String> expectedStr = expectedStrMap.get(cmd);