Commit 3e1a46dd authored by Simon McVittie's avatar Simon McVittie

Fix perl warnings for shadowing a local variable

Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
parent 53100e89
......@@ -268,23 +268,23 @@ ok(! -e "$libdir/libc.so.6",
# only-dependencies:no-dependencies: (either way round) is completely useless
ok(! system('rm', '-fr', $libdir));
mkdir($libdir);
my $result = run_verbose([qw(bwrap --ro-bind / / --ro-bind /), $host,
'--bind', $libdir, $libdir,
qw(--dev-bind /dev /dev),
$CAPSULE_CAPTURE_LIBS_TOOL, '--link-target=/',
"--dest=$libdir", "--provider=$host",
'only-dependencies:no-dependencies:libglib-2.0.so.0'],
'>&2');
$result = run_verbose([qw(bwrap --ro-bind / / --ro-bind /), $host,
'--bind', $libdir, $libdir,
qw(--dev-bind /dev /dev),
$CAPSULE_CAPTURE_LIBS_TOOL, '--link-target=/',
"--dest=$libdir", "--provider=$host",
'only-dependencies:no-dependencies:libglib-2.0.so.0'],
'>&2');
ok(! $result, 'only-dependencies:no-dependencies: is useless');
ok(! system('rm', '-fr', $libdir));
mkdir($libdir);
my $result = run_verbose([qw(bwrap --ro-bind / / --ro-bind /), $host,
'--bind', $libdir, $libdir,
qw(--dev-bind /dev /dev),
$CAPSULE_CAPTURE_LIBS_TOOL, '--link-target=/',
"--dest=$libdir", "--provider=$host",
'no-dependencies:only-dependencies:libglib-2.0.so.0'],
'>&2');
$result = run_verbose([qw(bwrap --ro-bind / / --ro-bind /), $host,
'--bind', $libdir, $libdir,
qw(--dev-bind /dev /dev),
$CAPSULE_CAPTURE_LIBS_TOOL, '--link-target=/',
"--dest=$libdir", "--provider=$host",
'no-dependencies:only-dependencies:libglib-2.0.so.0'],
'>&2');
ok(! $result, 'no-dependencies:only-dependencies: is useless');
SKIP: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment