From 0ad03e0cc72e75bece911fb51815f3452a05d484 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 31 Oct 2006 21:14:32 +0000
Subject: [PATCH] Update the test case framework so that it is now possible to suppress anything written to standard output or standard error while the unit tests are running. This includes direct references to System.out and System.err as well as logging performed through the JDK logger.
---
opends/build.xml | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/opends/build.xml b/opends/build.xml
index de2675ff..ab3024c 100644
--- a/opends/build.xml
+++ b/opends/build.xml
@@ -678,6 +678,14 @@
<isset property="TESTASSERT" />
</not>
</condition>
+
+ <!-- This sets org.opends.test.suppressOutput if and only if it's not
+ already set. -->
+ <condition property="org.opends.test.suppressOutput" value="false">
+ <not>
+ <isset property="org.opends.test.suppressOutput" />
+ </not>
+ </condition>
<testng outputdir="${unittest.report.dir}" haltonfailure="true"
enableAssert="${TESTASSERT}">
@@ -700,6 +708,7 @@
<jvmarg value="-Demma.coverage.out.file=${coverage.data.dir}/unit.emma" />
<jvmarg value="-Demma.coverage.out.merge=false" />
<jvmarg value="-Dorg.opends.server.BuildRoot=${basedir}" />
+ <jvmarg value="-Dorg.opends.test.suppressOutput=${org.opends.test.suppressOutput}" />
<jvmarg value="-Xmx${MEM}" />
<jvmarg value="-Xms${MEM}" />
<xmlfileset dir="${unittest.resource.dir}" includes="testng.xml" />
--
Gitblit v1.10.0