summaryrefslogtreecommitdiffstats
path: root/auto-virtserial.c
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2009-11-27 23:47:42 +0530
committerAmit Shah <amit.shah@redhat.com>2009-12-22 12:36:01 +0530
commitb702d95f7f6d0febf9902bcec95f7cfc9d2202c4 (patch)
treee76b7ee342c307d6ac154269a66e59b2c94e166e /auto-virtserial.c
parent82242914cd89fed9d0f4adc2b9e92f7395de72c4 (diff)
downloadtest-virtserial-b702d95f7f6d0febf9902bcec95f7cfc9d2202c4.tar.gz
test-virtserial-b702d95f7f6d0febf9902bcec95f7cfc9d2202c4.tar.xz
test-virtserial-b702d95f7f6d0febf9902bcec95f7cfc9d2202c4.zip
autotest: close host chardevs after test
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'auto-virtserial.c')
-rw-r--r--auto-virtserial.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/auto-virtserial.c b/auto-virtserial.c
index 397582c..5630611 100644
--- a/auto-virtserial.c
+++ b/auto-virtserial.c
@@ -882,6 +882,7 @@ static int test_file_send(int nr)
gpkt.key = KEY_CSUM;
gpkt.value = nr;
guest_cmd_only(&gpkt);
+
/* Compute checksum here while the guest does the same */
ret = system("sha1sum /tmp/amit/big-file > /tmp/amit/csumfile");
err = result(__func__, true, "csum1",
@@ -925,6 +926,7 @@ static int test_file_send(int nr)
err = result(__func__, true, "csum", ret, 0, 0, OP_EQ, true);
out_close:
+ host_close_chardev(nr);
guest_close_port(nr);
return err;
}