mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
bindtests: Add a test for RBufferOut
Fixup the existing test, and add an entry in actions so it's actually generated.
This commit is contained in:
@@ -55,6 +55,7 @@ let test_all_rets = [
|
||||
"test0rstruct", RStruct ("valout", "lvm_pv");
|
||||
"test0rstructlist", RStructList ("valout", "lvm_pv");
|
||||
"test0rhashtable", RHashtable "valout";
|
||||
"test0rbufferout", RBufferOut "valout";
|
||||
]
|
||||
|
||||
let test_functions = [
|
||||
|
||||
@@ -181,6 +181,7 @@ print_strings (char *const *argv)
|
||||
pr " strs[n*2] = NULL;\n";
|
||||
pr " return strs;\n"
|
||||
| RBufferOut _ ->
|
||||
pr " *size_r = strlen (val);\n";
|
||||
pr " return strdup (val);\n"
|
||||
);
|
||||
pr "}\n";
|
||||
|
||||
Reference in New Issue
Block a user