groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [01/18] incubator-groovy git commit: remove checkout of byte length of file in testFileIntro, because it can fail depending on the system file encoding (e.g. fails on https://builds.apache.org ubuntu slaves)
Date Sat, 24 Oct 2015 13:43:11 GMT
Repository: incubator-groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X 95fa73351 -> 06415b9cc


remove checkout of byte length of file in testFileIntro, because it can fail depending on
the system file encoding (e.g. fails on https://builds.apache.org ubuntu slaves)


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/a8a5317a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/a8a5317a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/a8a5317a

Branch: refs/heads/GROOVY_2_4_X
Commit: a8a5317ab931561a2bb0d92c37f9f4866687dde6
Parents: 526de11
Author: pascalschumacher <pascalschumacher@gmx.net>
Authored: Wed Oct 21 19:22:37 2015 +0200
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Sat Oct 24 15:39:15 2015 +0200

----------------------------------------------------------------------
 src/spec/test/gdk/WorkingWithIOSpecTest.groovy | 7 -------
 1 file changed, 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/a8a5317a/src/spec/test/gdk/WorkingWithIOSpecTest.groovy
----------------------------------------------------------------------
diff --git a/src/spec/test/gdk/WorkingWithIOSpecTest.groovy b/src/spec/test/gdk/WorkingWithIOSpecTest.groovy
index c094a8b..3d362ec 100644
--- a/src/spec/test/gdk/WorkingWithIOSpecTest.groovy
+++ b/src/spec/test/gdk/WorkingWithIOSpecTest.groovy
@@ -73,13 +73,6 @@ Le bruit de l'eau.''')
             // tag::file_bytes[]
             byte[] contents = file.bytes
             // end::file_bytes[]
-            def expectedLength = 64
-            // e with acute accent won't be encoded on some systems -23 vs -61, -87
-            if (System.getProperty('file.encoding').endsWith('1252')) {
-                expectedLength = 63
-            }
-            assert contents.length == expectedLength
-
         }
     }
 


Mime
View raw message