You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is_run 'sub foo($bar) { Proxy.new( FETCH => sub (|) { }, STORE => sub (|) { } ) }', { err =>'', out =>'', status =>0 }, :compiler-args['--target', $*VM.precomp-target, '--output', $output-path ], 'precompile sub with params returning a proxy';
51
53
52
54
is_run '0', { err =>'', out =>'', status =>0 }, :compiler-args['-I', 't/spec/packages', '-M', $module-name], 'precompile load - from the command line';
is_run 'role Foo [ ] { }; role Bar does Foo[] { }', { err =>'', out =>'', status =>0 }, :compiler-args['--target', $*VM.precomp-target, '--output', $output-path ], "precomp curried role compose";
62
65
63
66
is_run "use $module-name; class C does Bar {};", { err =>'', out =>'', status =>0 }, :compiler-args['-I', 't/spec/packages', '-M', $module-name], 'precompile load - from the command line';
64
-
unlink$output-pathif$output-path.IO.e;
67
+
68
+
unlink$output-path; # don't care if failed
65
69
}
66
70
67
71
#RT #123276
@@ -72,7 +76,8 @@ unlink $_ for @precomp-paths;
72
76
my$module-dir=join'/', split('::', $module-name);
73
77
my$path="t/spec/packages/{$module-dir}.pm";
74
78
my$precomp-path=$path~'.'~$*VM.precomp-ext;
75
-
unlink$precomp-pathif$precomp-path.IO.e;
79
+
unlink$precomp-path; # don't care if failed
80
+
76
81
ok CompUnit.new($path).precomp(), "precomp Example::$_";
0 commit comments