Skip to content

Commit a7eccf4

Browse files
committed
t/run/todo.t: Add test names to tests missing them
1 parent af8f212 commit a7eccf4

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
@@ -102,7 +102,7 @@ TODO: {
102102
local $^W = $^W;
103103
is($^W, '1', 'local $^W assignment to self ok');
104104
}
105-
is($^W, 1, '$^W value prior to localization is restored');
105+
is($^W, 1, '$^W value prior to localization is restored; GH 5835');
106106
$^W = $prev_w;
107107
}
108108

@@ -114,10 +114,11 @@ TODO: {
114114
$h->truncate(6) or die $!;
115115
print $x;
116116
EOF
117-
is($?, 0, 'perl exited normally');
117+
is($?, 0, 'perl exited normally; [GH 16008]');
118118

119-
is $results, 'hello ', "truncate returned the expected output";
120-
unlike $results, qr/Bad file descriptor/, "truncate did not warn about bad file descriptors";
119+
is $results, 'hello ', "truncate returned the expected output; [GH 16008]";
120+
unlike $results, qr/Bad file descriptor/,
121+
"truncate did not warn about bad file descriptors [GH 16008]";
121122
}
122123

123124
TODO: {
@@ -128,36 +129,36 @@ TODO: {
128129
"abcde5678" =~ / b .* (*plb:(*plb:(.{4}))? (.{5}) ) .$ /x;
129130
print $1 // "undef", ":", $2 // "undef", "\n";
130131
EOF
131-
"undef:de567\nundef:de567", { eval $switches }, "");
132+
"undef:de567\nundef:de567", { eval $switches }, "GH 16250");
132133
}
133134

134135
TODO: {
135136
local $::TODO = 'GH 16865';
136137
fresh_perl('\(sort { 0 } 0, 0 .. "a")', { stderr => 'devnull' });
137-
is($?, 0, "No assertion failure");
138+
is($?, 0, "No assertion failure; GH 16865");
138139
}
139140

140141
TODO: {
141142
todo_skip "Test needs -DDEBUGGING", 1 unless $is_debugging_build;
142143
local $::TODO = 'GH 16876';
143144
fresh_perl('$_ = "a"; s{ x | (?{ s{}{x} }) }{}gx;',
144145
{ stderr => 'devnull' });
145-
is($?, 0, "No assertion failure");
146+
is($?, 0, "No assertion failure; GH 16876");
146147
}
147148

148149
TODO: {
149150
todo_skip "Test needs -DDEBUGGING", 1 unless $is_debugging_build;
150151
local $::TODO = 'GH 16952';
151152
fresh_perl('s/d|(?{})!//.$&>0for$0,l..a0,0..0',
152153
{ stderr => 'devnull' });
153-
is($?, 0, "No assertion failure");
154+
is($?, 0, "No assertion failure; GH 16952");
154155
}
155156

156157
TODO: {
157158
local $::TODO = 'GH 16971';
158159
fresh_perl('split(/00|0\G/, "000")',
159160
{ stderr => 'devnull' });
160-
is($?, 0, "No panic");
161+
is($?, 0, "No panic; GH 16971");
161162
}
162163

163164
TODO: {
@@ -168,16 +169,16 @@ TODO: {
168169
push(@{ $x->{ decide } ? $x->{ not_here } : $x->{ new } }, "mana");
169170
print $x->{ new }[0];
170171
EOF
171-
is($?, 0, "No assertion failure");
172-
is($results, 'mana', 'push on non-existent hash entry from ternary autovivifies array ref');
172+
is($?, 0, "No assertion failure; GH 18669");
173+
is($results, 'mana', 'push on non-existent hash entry from ternary autovivifies array ref; GH 18669');
173174

174175
$results = fresh_perl(<<~'EOF', {});
175176
my $x = { arr => undef };
176177
push(@{ $x->{ decide } ? $x->{ not_here } : $x->{ arr } }, "mana");
177178
print $x->{ arr }[0];
178179
EOF
179-
is($?, 0, "No assertion failure");
180-
is($results, 'mana', 'push on undef hash entry from ternary autovivifies array ref');
180+
is($?, 0, "No assertion failure; GH 18669");
181+
is($results, 'mana', 'push on undef hash entry from ternary autovivifies array ref; GH 18669');
181182

182183
}
183184

0 commit comments

Comments
 (0)