System.err contents were not being output on a test failure due to a copy and paste bug. This is now fixed. I've also backed out revision 1432 since we now get the same info plus a little more.
| | |
| | | } |
| | | |
| | | String systemErr = TestCaseUtils.getSystemErrContents(); |
| | | if (systemOut.length() > 0) { |
| | | if (systemErr.length() > 0) { |
| | | failureInfo.append(EOL + "System.err contents:" + EOL + systemErr); |
| | | } |
| | | |
| | |
| | | diffFromExpected = diffLdif(params._expectedResultsLdif, searchResults); |
| | | |
| | | // Ignoring whitespace the diff should be empty. |
| | | Assert.assertTrue(diffFromExpected.replaceAll("\\s", "").length() == 0, |
| | | "Difference from expected results:" + EOL + |
| | | diffFromExpected); |
| | | Assert.assertTrue(diffFromExpected.replaceAll("\\s", "").length() == 0); |
| | | } catch (Throwable e) { |
| | | System.err.println( |
| | | "Started with dit:\n" + |