Skip to content

Commit

Permalink
Don't pollute test exit status
Browse files Browse the repository at this point in the history
This is a leftover change missed in the previous commit.
  • Loading branch information
ab5tract committed Apr 29, 2024
1 parent 918f55a commit 6f7d6ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 6.c/S06-other/main-refactored.t
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ for @named-anywhere-ok -> \args, @expected, %expected {

# --- Other tests---------------------------------------------------------------
{
# Ignore exits (Rakudo pre-2024.05 always returns 0, after returns 0 or 2)
# assign to anonymous state var to avoid ''useless use in sink'
my &*EXIT = { $ = $_ };

multi MAIN("NEVER MATCHES") { }
multi MAIN("THE-HIDDEN-MULTI") is hidden-from-USAGE { }
@*ARGS = ();
Expand Down

0 comments on commit 6f7d6ae

Please sign in to comment.