You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by jh...@apache.org on 2019/09/05 07:18:41 UTC

[ant] branch master updated: Provide more meaningful error message

This is an automated email from the ASF dual-hosted git repository.

jhm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git


The following commit(s) were added to refs/heads/master by this push:
     new f8e349c  Provide more meaningful error message
f8e349c is described below

commit f8e349cdba345f0394ddf0be0b2c92da7a0d0ca8
Author: Jan Matèrne <jh...@apache.org>
AuthorDate: Thu Sep 5 09:08:20 2019 +0200

    Provide more meaningful error message
---
 .../apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java  | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java
index 24429cb..667db43 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java
@@ -170,6 +170,12 @@ public class ScriptDefTest {
             notCompiledDuration = System.nanoTime() - start;
         }
 
-        assertTrue(duration < notCompiledDuration);
+        assertTrue(
+            String.format(
+                "Compiled scripts should run faster (%d ns) than not compiled (%d ns) scripts.",
+                duration, notCompiledDuration
+	        ), 
+            duration < notCompiledDuration
+        );
     }
 }