Skip to content

Commit

Permalink
MONDRIAN: Hard coded line ending in test suite caused a test to fail …
Browse files Browse the repository at this point in the history
…on Windows machines.

[git-p4: depot-paths = "//open/mondrian/": change = 14036]
  • Loading branch information
lucboudreau committed Jan 13, 2011
1 parent 1c8936d commit 48786e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion testsrc/main/mondrian/test/ParentChildHierarchyTest.java
Expand Up @@ -1167,7 +1167,12 @@ public void testClosureVsNoClosure() {
+ "from [HR4C]";
expected =
TestContext.toString(testClosureContext.executeQuery(mdx));
assertTrue(expected, expected.contains("Row #0: 21,252\n"));
assertTrue(
expected,
expected
.contains(
"Row #0: 21,252"
+ System.getProperty("line.separator")));
// Need to unfold because 'expect' has platform-specific line-endings,
// yet assertQueryReturns assumes that it contains linefeeds.
testNoClosureContext.assertQueryReturns(
Expand Down

0 comments on commit 48786e9

Please sign in to comment.