Skip to content

Commit 54dd719

Browse files
drowaudioclaude
andcommitted
Fix Windows test: compare raw parsed paths, not juce::File-normalised
"Command line parser" asserted opts.dataFile/outputDir.getFullPathName() against Unix-style literals; on Windows juce::File normalises those to the current drive (e.g. "D:\path\to\file"), failing the comparison. Assert the raw parsed settings strings instead, which are identical on all platforms. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent c1951aa commit 54dd719

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Source/CommandLineTests.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ struct CommandLineTests : public juce::UnitTest
8787
expectEquals (opts.randomSeed, (juce::int64) 1234);
8888
expectEquals (opts.timeoutMs, (juce::int64) 20000);
8989
expectEquals (opts.numRepeats, 11);
90-
expectEquals (opts.dataFile.getFullPathName(), juce::String ("/path/to/file"));
91-
expectEquals (opts.outputDir.getFullPathName(), juce::String ("/path/to/dir"));
90+
// Compare the raw parsed strings: juce::File would normalise these to the
91+
// current drive on Windows (e.g. "D:\path\to\file").
92+
expectEquals (juce::String (settings.dataFile), juce::String ("/path/to/file"));
93+
expectEquals (juce::String (settings.outputDir), juce::String ("/path/to/dir"));
9294
expectEquals (juce::String (settings.validatePath), juce::String ("/path/to/plugin"));
9395
}
9496

0 commit comments

Comments
 (0)