Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
check that require "ENOTTHERE" does not segfault, RT #115626
  • Loading branch information
FROGGS committed Apr 8, 2015
1 parent 47b74d0 commit 21f93eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S11-modules/require.t
Expand Up @@ -2,7 +2,7 @@ use v6;

my $istrue = (require Test <&plan &is &lives_ok &skip &todo>);

plan 15;
plan 16;

is $istrue, True, "successful require returns True";

Expand Down Expand Up @@ -70,4 +70,8 @@ is GLOBAL::<$x>, 'still here', 'loading modules does not clobber GLOBAL';
lives_ok { chdir "t/spec/packages"; require "Foo.pm"; },
'can change directory and require a module';

# RT #115626
lives_ok { try require "THIS_FILE_HOPEFULLY_NEVER_EXISTS.pm"; },
'requiring something non-existent does not make it segfault';

# vim: ft=perl6

0 comments on commit 21f93eb

Please sign in to comment.