Skip to content

Commit c78f1cd

Browse files
committed
t/run/todo.t: Add test names to tests missing them
1 parent 23bbe74 commit c78f1cd

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

t/run/todo.t

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ TODO: {
108108
local $^W = $^W;
109109
is($^W, '1', 'local $^W assignment to self ok');
110110
}
111-
is($^W, 1, '$^W value prior to localization is restored');
111+
is($^W, 1, '$^W value prior to localization is restored; GH 5835');
112112
$^W = $prev_w;
113113
}
114114

@@ -120,10 +120,11 @@ TODO: {
120120
$h->truncate(6) or die $!;
121121
print $x;
122122
EOF
123-
is($?, 0, 'perl exited normally');
123+
is($?, 0, 'perl exited normally; [GH 16008]');
124124

125-
is $results, 'hello ', "truncate returned the expected output";
126-
unlike $results, qr/Bad file descriptor/, "truncate did not warn about bad file descriptors";
125+
is $results, 'hello ', "truncate returned the expected output; [GH 16008]";
126+
unlike $results, qr/Bad file descriptor/,
127+
"truncate did not warn about bad file descriptors [GH 16008]";
127128
}
128129

129130
TODO: {
@@ -134,36 +135,36 @@ TODO: {
134135
"abcde5678" =~ / b .* (*plb:(*plb:(.{4}))? (.{5}) ) .$ /x;
135136
print $1 // "undef", ":", $2 // "undef", "\n";
136137
EOF
137-
"undef:de567\nundef:de567", { eval $switches }, "");
138+
"undef:de567\nundef:de567", { eval $switches }, "GH 16250");
138139
}
139140

140141
TODO: {
141142
local $::TODO = 'GH 16865';
142143
fresh_perl('\(sort { 0 } 0, 0 .. "a")', { stderr => 'devnull' });
143-
is($?, 0, "No assertion failure");
144+
is($?, 0, "No assertion failure; GH 16865");
144145
}
145146

146147
TODO: {
147148
todo_skip "Test needs -DDEBUGGING", 1 unless $is_debugging_build;
148149
local $::TODO = 'GH 16876';
149150
fresh_perl('$_ = "a"; s{ x | (?{ s{}{x} }) }{}gx;',
150151
{ stderr => 'devnull' });
151-
is($?, 0, "No assertion failure");
152+
is($?, 0, "No assertion failure; GH 16876");
152153
}
153154

154155
TODO: {
155156
todo_skip "Test needs -DDEBUGGING", 1 unless $is_debugging_build;
156157
local $::TODO = 'GH 16952';
157158
fresh_perl('s/d|(?{})!//.$&>0for$0,l..a0,0..0',
158159
{ stderr => 'devnull' });
159-
is($?, 0, "No assertion failure");
160+
is($?, 0, "No assertion failure; GH 16952");
160161
}
161162

162163
TODO: {
163164
local $::TODO = 'GH 16971';
164165
fresh_perl('split(/00|0\G/, "000")',
165166
{ stderr => 'devnull' });
166-
is($?, 0, "No panic");
167+
is($?, 0, "No panic; GH 16971");
167168
}
168169

169170
TODO: {
@@ -174,16 +175,16 @@ TODO: {
174175
push(@{ $x->{ decide } ? $x->{ not_here } : $x->{ new } }, "mana");
175176
print $x->{ new }[0];
176177
EOF
177-
is($?, 0, "No assertion failure");
178-
is($results, 'mana', 'push on non-existent hash entry from ternary autovivifies array ref');
178+
is($?, 0, "No assertion failure; GH 18669");
179+
is($results, 'mana', 'push on non-existent hash entry from ternary autovivifies array ref; GH 18669');
179180

180181
$results = fresh_perl(<<~'EOF', {});
181182
my $x = { arr => undef };
182183
push(@{ $x->{ decide } ? $x->{ not_here } : $x->{ arr } }, "mana");
183184
print $x->{ arr }[0];
184185
EOF
185-
is($?, 0, "No assertion failure");
186-
is($results, 'mana', 'push on undef hash entry from ternary autovivifies array ref');
186+
is($?, 0, "No assertion failure; GH 18669");
187+
is($results, 'mana', 'push on undef hash entry from ternary autovivifies array ref; GH 18669');
187188

188189
}
189190

0 commit comments

Comments
 (0)