cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [2/3] git commit: fix DirectoriesTest for Windows patch by Josh McKenzie; reviewed by jbellis for CASSANDRA-7251
Date Wed, 21 May 2014 03:47:58 GMT
fix DirectoriesTest for Windows
patch by Josh McKenzie; reviewed by jbellis for CASSANDRA-7251


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

Branch: refs/heads/trunk
Commit: a42b4e584842a3104652fa2c0092f9306f935f26
Parents: cf60ca8
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Tue May 20 22:47:46 2014 -0500
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Tue May 20 22:47:46 2014 -0500

----------------------------------------------------------------------
 test/unit/org/apache/cassandra/db/DirectoriesTest.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/a42b4e58/test/unit/org/apache/cassandra/db/DirectoriesTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/db/DirectoriesTest.java b/test/unit/org/apache/cassandra/db/DirectoriesTest.java
index 05e0beb..1b9409a 100644
--- a/test/unit/org/apache/cassandra/db/DirectoriesTest.java
+++ b/test/unit/org/apache/cassandra/db/DirectoriesTest.java
@@ -199,7 +199,8 @@ public class DirectoriesTest
                 dd.location.setWritable(false);
             }
 
-            CFMetaData cfm = new CFMetaData(KS, "bad", ColumnFamilyType.Standard, null);
+            // nested folders in /tmp is enough to fail on *nix but we need to pass the 255
char limit to get a failure on Windows and blacklist
+            CFMetaData cfm = new CFMetaData(KS, "badbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbad",
ColumnFamilyType.Standard, null);
             Directories dir = new Directories(cfm);
 
             for (File file : dir.getCFDirectories())


Mime
View raw message