Author: jbellis
Date: Mon Feb 15 20:06:39 2010
New Revision: 910325
URL: http://svn.apache.org/viewvc?rev=910325&view=rev
Log:
fix SSTableExportTest to work on Windows. patch by jbellis
Modified:
incubator/cassandra/trunk/test/unit/org/apache/cassandra/tools/SSTableExportTest.java
Modified:
incubator/cassandra/trunk/test/unit/org/apache/cassandra/tools/SSTableExportTest.java
URL:
http://svn.apache.org/viewvc/incubator/cassandra/trunk/test/unit/org/apache/cassandra/tools/SSTableExportTest.java?rev=910325&r1=910324&r2=910325&view=diff
==============================================================================
---
incubator/cassandra/trunk/test/unit/org/apache/cassandra/tools/SSTableExportTest.java
(original)
+++
incubator/cassandra/trunk/test/unit/org/apache/cassandra/tools/SSTableExportTest.java
Mon Feb 15 20:06:39 2010
@@ -78,8 +78,9 @@
char[] buf = new char[(int) temp.length()];
file.read(buf);
String output = new String(buf);
-
- assert output.equals("rowA\nrowB\n");
+
+ String sep = System.getProperty("line.separator");
+ assert output.equals("rowA" + sep + "rowB" + sep) : output;
}
@Test