Skip to content

Commit 80d2a80

Browse files
authored
Fix failing rdmd_test introduced by a51571a (#480)
* Fix failing rdmd_test introduced by a51571a * GHA: Test MacOS 13 only
1 parent d63c63b commit 80d2a80

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
os: [ macos-latest, ubuntu-latest, windows-latest ]
15+
os: [ macos-13, ubuntu-latest, windows-latest ]
1616
dc: [ dmd-latest, ldc-latest ]
1717
name: ${{ matrix.os }}, ${{ matrix.dc }}
1818
runs-on: ${{ matrix.os }}

rdmd_test.d

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ void runCompilerAgnosticTests(string rdmdApp, string defaultCompiler, string mod
140140
/* Test help string output when no arguments passed. */
141141
auto res = execute([rdmdApp]);
142142
enforce(res.status == 1, res.output);
143-
enforce(res.output.canFind("Usage: rdmd [RDMD AND DMD OPTIONS]... program [PROGRAM OPTIONS]..."));
143+
enforce(res.output.canFind("Usage: rdmd [RDMD AND DMD OPTIONS...] program [PROGRAM OPTIONS...]"));
144144

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

150150
string helpText = res.output;
151151

0 commit comments

Comments
 (0)