Skip to content

Commit

Permalink
Fix failing rdmd_test introduced by a51571a (#480)
Browse files Browse the repository at this point in the history
* Fix failing rdmd_test introduced by a51571a

* GHA: Test MacOS 13 only
  • Loading branch information
ibuclaw authored Feb 9, 2025
1 parent d63c63b commit 80d2a80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
os: [ macos-13, ubuntu-latest, windows-latest ]
dc: [ dmd-latest, ldc-latest ]
name: ${{ matrix.os }}, ${{ matrix.dc }}
runs-on: ${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions rdmd_test.d
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ void runCompilerAgnosticTests(string rdmdApp, string defaultCompiler, string mod
/* Test help string output when no arguments passed. */
auto res = execute([rdmdApp]);
enforce(res.status == 1, res.output);
enforce(res.output.canFind("Usage: rdmd [RDMD AND DMD OPTIONS]... program [PROGRAM OPTIONS]..."));
enforce(res.output.canFind("Usage: rdmd [RDMD AND DMD OPTIONS...] program [PROGRAM OPTIONS...]"));

/* Test --help. */
res = execute([rdmdApp, "--help"]);
enforce(res.status == 0, res.output);
enforce(res.output.canFind("Usage: rdmd [RDMD AND DMD OPTIONS]... program [PROGRAM OPTIONS]..."));
enforce(res.output.canFind("Usage: rdmd [RDMD AND DMD OPTIONS...] program [PROGRAM OPTIONS...]"));

string helpText = res.output;

Expand Down

0 comments on commit 80d2a80

Please sign in to comment.