Added test to cover setsockopt for tcpkeepalive

This commit is contained in:
Patrick J Cherry
2018-02-08 23:07:17 +00:00
parent ebacf738bc
commit c053a54faa
3 changed files with 53 additions and 8 deletions

View File

@@ -33,4 +33,10 @@ module LdPreload
@ld_preload_logs[obj_name].eof?
lines
end
def parse_ld_preload_logs(obj_name)
read_ld_preload_log(obj_name).map do |l|
l.split(':').map { |i| i =~ /^\d+$/ ? i.to_i : i }
end
end
end