testcases: correctly enable lexical pragmata
eval 'package foo; use strict;' enables strict within eval, it does not leak into the surrounding scope. Also fix various warnings/compile errors found due to now enabled strict and warnings.
This commit is contained in:
committed by
Michael Stapelberg
parent
0a65b770e8
commit
1b1d7941ec
@ -108,7 +108,7 @@ ok(defined($ws), "workspace 3: $tmp was created");
|
||||
is($ws->{num}, 3, 'workspace number is 3');
|
||||
|
||||
cmd "workspace 0: $tmp";
|
||||
my $ws = get_ws("0: $tmp");
|
||||
$ws = get_ws("0: $tmp");
|
||||
ok(defined($ws), "workspace 0: $tmp was created");
|
||||
is($ws->{num}, 0, 'workspace number is 0');
|
||||
|
||||
|
Reference in New Issue
Block a user