Lines Matching refs:fh
1069 local function write_test_boilerplate(fh, name, body)
1070 fh:write("ATF_TC_WITHOUT_HEAD(" .. name .. ");\n")
1071 fh:write("ATF_TC_BODY(" .. name .. ", tc)\n")
1072 fh:write("{\n" .. body .. "\n}\n\n")
1223 local function write_test(fh, func, disposition, heap, def)
1345 return write_test_boilerplate(fh, testname, body)
1360 local fh = io.stdout
1361 fh:write("/* @" .. "generated" .. " by `generate-fortify-tests.lua \"" ..
1363 fh:write("#define _FORTIFY_SOURCE 2\n")
1364 fh:write("#define TMPFILE_SIZE (1024 * 32)\n")
1366 fh:write("\n")
1368 fh:write("#include <" .. inc .. ">\n")
1371 fh:write([[
1519 tests_added[#tests_added + 1] = write_test(fh, func, disposition, heap, def)
1527 fh:write("ATF_TP_ADD_TCS(tp)\n")
1528 fh:write("{\n")
1530 fh:write("\tATF_TP_ADD_TC(tp, " .. tests_added[idx] .. ");\n")
1532 fh:write("\treturn (atf_no_error());\n")
1533 fh:write("}\n")