diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-08-15 16:08:19 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-08-30 22:07:51 +0100 |
commit | dec8aaa6f52a9cf22be2dcdfa157e397833e07ad (patch) | |
tree | 38cda4ba8191455b1f0440103e59c8fc2f246d49 | |
parent | b442994d56bf692b2f53af3a627a0ded7ca06e58 (diff) | |
download | libguestfs-dec8aaa6f52a9cf22be2dcdfa157e397833e07ad.tar.gz libguestfs-dec8aaa6f52a9cf22be2dcdfa157e397833e07ad.tar.xz libguestfs-dec8aaa6f52a9cf22be2dcdfa157e397833e07ad.zip |
test-launch-race: Use /dev/null instead of hand-made zero-length file.
There seems to be no reason why creating a zero-length
file is necessary for this test.
(cherry picked from commit 7f9f2818651860a15a7142d3761e3168e062c357)
-rwxr-xr-x | tests/protocol/test-launch-race.pl | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/protocol/test-launch-race.pl b/tests/protocol/test-launch-race.pl index c2f52967..7a1e836c 100755 --- a/tests/protocol/test-launch-race.pl +++ b/tests/protocol/test-launch-race.pl @@ -32,21 +32,18 @@ exit 77 if $ENV{SKIP_TEST_LAUNCH_RACE_PL}; my $tmpdir = tempdir (CLEANUP => 1); $ENV{TMPDIR} = $tmpdir; -my $testimg = $tmpdir.'/test.img'; -system ("touch $testimg"); - my $pid = fork(); die ("fork failed: $!") if ($pid < 0); if ($pid == 0) { my $g = Sys::Guestfs->new (); - $g->add_drive ($testimg); + $g->add_drive ("/dev/null"); $g->launch (); _exit (0); } my $g = Sys::Guestfs->new (); -$g->add_drive ($testimg); +$g->add_drive ("/dev/null"); $g->launch (); $g = undef; |