adapt to modified CDATA section escaping in trunk
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@955532 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
048cade8bd
commit
40d950fe3b
|
|
@ -264,13 +264,26 @@ under the License.
|
|||
<clean/>
|
||||
</target>
|
||||
|
||||
<target name="badcharacters" depends="-createreport">
|
||||
<target name="-readbadcharsreport" depends="-createreport">
|
||||
<loadfile property="reportxml" srcFile="${reportfile}" />
|
||||
<au:assertMatches string="${reportxml}" pattern="${systemoutstart}.*&#x5d;&#x5d;&gt;.*${systemoutend}" singleline="true"
|
||||
message="Bad characters not escaped" />
|
||||
<condition property="182+">
|
||||
<antversion atleast="1.8.2"/>
|
||||
</condition>
|
||||
</target>
|
||||
|
||||
<target name="badcharacters" depends="badchars181,badchars182">
|
||||
<clean/>
|
||||
</target>
|
||||
|
||||
<target name="badchars181" depends="-readbadcharsreport" unless="182+">
|
||||
<au:assertMatches string="${reportxml}" pattern="${systemoutstart}.*&#x5d;&#x5d;&gt;.*${systemoutend}" singleline="true"
|
||||
message="Bad characters not escaped" />
|
||||
</target>
|
||||
|
||||
<target name="badchars182" depends="-readbadcharsreport" if="182+">
|
||||
<au:assertMatches string="${reportxml}" pattern="${systemoutstart}.*]]]]><!\[CDATA\[>.*${systemoutend}" singleline="true"
|
||||
message="Bad characters not escaped" />
|
||||
</target>
|
||||
|
||||
<target name="suiteSetUp">
|
||||
<echo>suiteSetUp</echo>
|
||||
|
|
|
|||
Loading…
Reference in New Issue