Skip to content

Instantly share code, notes, and snippets.

@samcv
Created April 4, 2017 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samcv/401e93e49375366981e7d9b36cbc4593 to your computer and use it in GitHub Desktop.
Save samcv/401e93e49375366981e7d9b36cbc4593 to your computer and use it in GitHub Desktop.
use v6;
use Test;
plan 1;
{
my $output = run($*EXECUTABLE, "--rxtrace", "-e", q/say "hello world"/, :err, :out).err.slurp-rest;
# If we're running a LLVM coverage profile make sure to strip that only that
# line
if %*ENV<LLVM_PROFILE_FILE> {
$output ~~ s/'LLVM Profile Note'.*?\n//;
}
# RT #128050
is $output,
"",
'--rxtrace does not crash';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment