Skip to content

Commit

Permalink
Make segv test more robust
Browse files Browse the repository at this point in the history
When using system as root, current version actually fails to
produce any errors.

Fix by making the test attempt to use a directory as a file instead
  • Loading branch information
zoffixznet committed Feb 6, 2018
1 parent 0bf735a commit 052a0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/05-messages/moar/01-errors.t
Expand Up @@ -10,7 +10,7 @@ subtest 'no SEGV with failed opens of MVM debug files' => {
plan +my @vars := <
MVM_SPESH_LOG MVM_JIT_LOG MVM_DYNVAR_LOG MVM_COVERAGE_LOG
>;
my $file := (make-temp-file :0chmod).absolute;
my $file := (make-temp-dir).absolute;
for @vars {
(temp %*ENV){$_} = $file;
is-run 42.say, :out(*), :err{.contains: 'Failed to open file'},
Expand Down

0 comments on commit 052a0bb

Please sign in to comment.