From f7e045a0eaf1f28a30d8e79a251ba45806f71133 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sun, 10 Sep 2006 23:27:33 +0000
Subject: [PATCH] Update the build.xml ant script so that it is possible to run unit tests with assertions by setting the TESTASSERT property to "true", like:
---
opendj-sdk/opends/build.xml | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/opendj-sdk/opends/build.xml b/opendj-sdk/opends/build.xml
index 4c345df..6da661c 100644
--- a/opendj-sdk/opends/build.xml
+++ b/opendj-sdk/opends/build.xml
@@ -601,8 +601,14 @@
</classpath>
</taskdef>
+ <condition property="TESTASSERT" value="false">
+ <not>
+ <isset property="TESTASSERT" />
+ </not>
+ </condition>
+
<testng outputdir="${unittest.report.dir}" haltonfailure="true"
- enableAssert="false">
+ enableAssert="${TESTASSERT}">
<classpath>
<pathelement location="${coverage.instr.dir}" />
<pathelement location="${classes.dir}" />
--
Gitblit v1.10.0