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:
Matthew Booth
2012-01-18 16:44:10 +00:00
parent a20b88be83
commit 24f01a581b
2 changed files with 2 additions and 0 deletions

View File

@@ -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 = [

View File

@@ -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";