Skip to content

Commit 239c0af

Browse files
authored
Merge pull request #58 from RossPatterson/WinSmokeTests
Make Windows smoke tests actually work.
2 parents 5835992 + a85a5ba commit 239c0af

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/com/ka/spreadsheet/diff/SpreadSheetDifferSmokeTest.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,13 @@ public static void main(String[] args) throws Exception {
129129
}
130130

131131
private static File resultFile(String resultFile) {
132-
return new File(isWindows ? ("win_" + resultFile) : resultFile);
132+
if (isWindows) {
133+
File tempFile = new File(resultFile);
134+
String dir = tempFile.getParent();
135+
String filename = "win_" + tempFile.getName();
136+
resultFile = dir + File.separator + filename;
137+
}
138+
return new File(resultFile);
133139
}
134140

135141
public static void testDiff(String testName, String[] args, @Nullable File expectedOutFile,

0 commit comments

Comments
 (0)