In the Utilities.execCmd() if Runtime.getRuntime().exec(command) throws an exception a NPE will result.
I think the exception should simply be thrown which will cause the test to fail.
In the same method:
+ if (pr.exitValue() != expectedExitCode)
+ BaseTestCase.fail("FAIL: expected exit code of " + expectedExitCode
+ + ", got exit code of " + pr.exitValue());
any reason not to use Assert.assertEquals()?
+ int j = 0;
+ for (int i = 3; i < totalSize; i++)
+ cmd[i] = args[j++];
any reason not to use System.arraycopy()?
Putting this exec in Utilities is good, it could be the base to fix
DERBY-3250 since the new method handles multiple arguments correctly.