mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

davidely
16.28.2007 3673c2d2822245fa45ee5045431f2aac69cd2a79
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.
2 files modified
6 ■■■■■ changed files
opends/tests/unit-tests-testng/src/server/org/opends/server/TestListener.java 2 ●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/AciTests.java 4 ●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/TestListener.java
@@ -264,7 +264,7 @@
    }
    String systemErr = TestCaseUtils.getSystemErrContents();
    if (systemOut.length() > 0) {
    if (systemErr.length() > 0) {
      failureInfo.append(EOL + "System.err contents:" + EOL + systemErr);
    }
opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/AciTests.java
@@ -1442,9 +1442,7 @@
      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" +