Skip to content

Commit cbcc367

Browse files
committed
fudge for niecza, update oldstyle eval test
1 parent b4bf84f commit cbcc367

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

S02-magicals/env.t

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ for %*ENV.kv -> $k,$v {
6969
if (%child_env{$k} !~~ $v) {
7070
if (! $err) {
7171
#?rakudo todo 'nom regression'
72+
#?niecza todo 'Environment gets propagated to child.'
7273
flunk("Environment gets propagated to child.");
7374
$err++;
7475
};
@@ -101,6 +102,7 @@ for %*ENV.kv -> $k,$v {
101102
next if $k eq any <SHLVL _ OLDPWD PS1>;
102103
if (%child_env{$k} !~~ $v) {
103104
if (! $err) {
105+
#?niecza todo 'Environment gets propagated to child.'
104106
flunk("Environment gets propagated to child.");
105107
$err++;
106108
};
@@ -119,10 +121,7 @@ ok !%*ENV.exists("does_not_exist"), "exists() returns false on a not defined env
119121
# %ENV must not be imported by default
120122
#?rakudo skip 'set_pmc() not implemented in class Exception'
121123
#?pugs todo 'bug'
122-
{
123-
my $x = eval "%ENV";
124-
ok $! ~~ m/Undeclared/, '%ENV not visible by default';
125-
}
124+
eval_dies_ok("%ENV", '%ENV not visible by default');
126125

127126
# following doesn't parse yet
128127
#?rakudo skip 'import keyword'

0 commit comments

Comments
 (0)