From d91b72e7016a1ebbc3363fe8a57ec61c012deb99 Mon Sep 17 00:00:00 2001 From: acolyer Date: Thu, 18 Mar 2004 11:30:19 +0000 Subject: [PATCH] make sure this test behaves appropriately when run outside of a cruise control driven build. --- bridge/testsrc/org/aspectj/bridge/VersionTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bridge/testsrc/org/aspectj/bridge/VersionTest.java b/bridge/testsrc/org/aspectj/bridge/VersionTest.java index ba9b17986..1587820c6 100644 --- a/bridge/testsrc/org/aspectj/bridge/VersionTest.java +++ b/bridge/testsrc/org/aspectj/bridge/VersionTest.java @@ -43,6 +43,7 @@ public class VersionTest extends TestCase { } public void testVersion() { + if (Version.time_text.equals("")) return; // dev build, we can only test this on the build server. Date date = new Date(Version.time); SimpleDateFormat format = new SimpleDateFormat(Version.SIMPLE_DATE_FORMAT, Locale.UK); format.setTimeZone(TimeZone.getTimeZone("GMT")); -- 2.39.5