tests/c-api: Remove 'GETKEY:' hack since it's no longer used anywhere.

This commit is contained in:
Richard W.M. Jones
2013-07-19 14:23:50 +01:00
parent 89865011e4
commit 8a3ecfc04e
2 changed files with 0 additions and 10 deletions

View File

@@ -377,10 +377,6 @@ and generate_test_command_call ?(expect_error = false) ?test ?ret test_name cmd=
List.iter (
function
| OptString _, "NULL", _ -> ()
| String _, arg, sym
when String.length arg >= 7 && String.sub arg 0 7 = "GETKEY:" ->
pr " const char *%s = guestfs_get_private (g, \"%s\");\n"
sym (c_quote (String.sub arg 7 (String.length arg - 7)))
| Pathname _, arg, sym
| Device _, arg, sym
| Mountable _, arg, sym

View File

@@ -460,12 +460,6 @@ add_disk (guestfs_h *g, const char *key, off_t size)
printf ("FAIL: guestfs_set_event_callback (GUESTFS_EVENT_CLOSE)\n");
exit (EXIT_FAILURE);
}
/* Record the real filename in the named private key. Tests can
* retrieve these names using the magic "GETKEY:<key>" String
* parameter.
*/
guestfs_set_private (g, key, filename);
}
/* Create the handle, with attached disks. */