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
@ -39,7 +39,7 @@ EOT
|
||||
|
||||
$pid = launch_with_config($config);
|
||||
|
||||
my @names = @{get_workspace_names()};
|
||||
@names = @{get_workspace_names()};
|
||||
cmp_deeply(\@names, [ 'foobar' ], 'i3 starts on named workspace foobar');
|
||||
|
||||
exit_gracefully($pid);
|
||||
@ -57,7 +57,7 @@ EOT
|
||||
|
||||
$pid = launch_with_config($config);
|
||||
|
||||
my @names = @{get_workspace_names()};
|
||||
@names = @{get_workspace_names()};
|
||||
cmp_deeply(\@names, [ 'foobar' ], 'i3 starts on named workspace foobar');
|
||||
|
||||
exit_gracefully($pid);
|
||||
|
Reference in New Issue
Block a user