diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2009-05-01 11:47:31 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2009-05-01 11:47:31 +0100 |
commit | 8c3b820c2b687345448e3d74a7101b07ff32688e (patch) | |
tree | 0cf5be9515ddcaa1ef6e74c2c55fca5760400c1c /tests.c | |
parent | 632012e6419f04fab93909f92ecbab5a2c590447 (diff) | |
download | libguestfs-8c3b820c2b687345448e3d74a7101b07ff32688e.tar.gz libguestfs-8c3b820c2b687345448e3d74a7101b07ff32688e.tar.xz libguestfs-8c3b820c2b687345448e3d74a7101b07ff32688e.zip |
Generated code for ping-daemon command.
Diffstat (limited to 'tests.c')
-rw-r--r-- | tests.c | 36 |
1 files changed, 35 insertions, 1 deletions
@@ -112,6 +112,34 @@ static void no_test_warnings (void) fprintf (stderr, "warning: \"guestfs_get_e2uuid\" has no tests\n"); } +static int test_ping_daemon_0 (void) +{ + /* InitEmpty for ping_daemon (0) */ + { + int r; + suppress_error = 0; + r = guestfs_umount_all (g); + if (r == -1) + return -1; + } + { + int r; + suppress_error = 0; + r = guestfs_lvm_remove_all (g); + if (r == -1) + return -1; + } + /* TestRun for ping_daemon (0) */ + { + int r; + suppress_error = 0; + r = guestfs_ping_daemon (g); + if (r == -1) + return -1; + } + return 0; +} + static int test_dmesg_0 (void) { /* InitEmpty for dmesg (0) */ @@ -7292,9 +7320,15 @@ int main (int argc, char *argv[]) exit (1); } - nr_tests = 103; + nr_tests = 104; test_num++; + printf ("%3d/%3d test_ping_daemon_0\n", test_num, nr_tests); + if (test_ping_daemon_0 () == -1) { + printf ("test_ping_daemon_0 FAILED\n"); + failed++; + } + test_num++; printf ("%3d/%3d test_dmesg_0\n", test_num, nr_tests); if (test_dmesg_0 () == -1) { printf ("test_dmesg_0 FAILED\n"); |