Skip to content

Commit 489b81d

Browse files
authored
Merge pull request #10807 from MoonlightSentinel/mscoff-output
Match "32mscoff" to "32" in conditional TEST_OUTPUT merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2 parents ca29f6f + de24ba3 commit 489b81d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

test/tools/d_do_test.d

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,8 @@ bool compareOutput(string output, string refoutput, const ref EnvData envData)
637637
toSkip = chunk;
638638
break;
639639
}
640-
// Match against OS or model
641-
else if (conditional[0].among(envData.os, envData.model))
640+
// Match against OS or model (accepts "32mscoff" as "32")
641+
else if (conditional[0].among(envData.os, envData.model, envData.model[0 .. min(2, $)]))
642642
{
643643
toSkip = conditional[2];
644644
break;
@@ -684,6 +684,9 @@ unittest
684684

685685
const emptyFmt = "On <$?:windows=abc|$> use <$?:posix=$>!";
686686
assert(compareOutput("On <> use <>!", emptyFmt, ed));
687+
688+
ed.model = "32mscoff";
689+
assert(compareOutput("size_t is uint!", "size_t is $?:32=uint|64=ulong$!", ed));
687690
}
688691

689692
string envGetRequired(in char[] name)

0 commit comments

Comments
 (0)