Commit cf6acc53 authored by Alexander's avatar Alexander
Browse files

Improve error message for NO_OUTPUT in case of empty string

parent 79ebb5e6
...@@ -240,7 +240,10 @@ public abstract class TestBase { ...@@ -240,7 +240,10 @@ public abstract class TestBase {
if (output != null) { if (output != null) {
log.info(" Failed!\n"); log.info(" Failed!\n");
printLog(); printLog();
fail("Output should have been empty but was:" + output); if (output.equals("")) {
output = "(empty string)";
}
fail("Output should have been empty but was: " + output);
} }
break; break;
case NO_CHECK: case NO_CHECK:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment