(command.CommandList children: [ (command.ShFunction name: h_pass body: (command.BraceGroup children: [ (C {(echo)} {(DQ ('Executing command [ ') ($ Id.VSub_Number '$2') ($ Id.VSub_Number '$1') (' ]'))} ) (C {(eval)} {($ Id.VSub_Number '$2')} {(atf_check)} {(-s)} {(Id.ControlFlow_Exit exit) (Id.Lit_Other ':') (0)} {(-o)} {(ignore)} {(-e)} {(ignore)} {($ Id.VSub_Number '$1')} ) ] ) ) (command.ShFunction name: h_fail body: (command.BraceGroup children: [ (C {(echo)} {(DQ ('Executing command [ ') ($ Id.VSub_Number '$2') ($ Id.VSub_Number '$1') (' ]'))} ) (C {(ulimit)} {(-c)} {(0)}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:152) ) ] action: [ (C {(eval)} {($ Id.VSub_Number '$2')} {(atf_check)} {(-s)} {(signal)} {(-o)} {(ignore)} {(-e)} {(ignore)} {($ Id.VSub_Number '$1')} ) ] spids: [149 154] ) ] else_action: [ (C {(eval)} {($ Id.VSub_Number '$2')} {(atf_check)} {(-s)} {(signal) (Id.Lit_Other ':') (6)} {(-o)} {(ignore)} {(-e)} {(ignore)} {($ Id.VSub_Number '$1')} ) ] ) ] ) ) (C {(atf_test_case)} {(sprintf)}) (command.ShFunction name: sprintf_head body: (command.BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks sprintf(3)'))})] ) ) (command.ShFunction name: sprintf_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:253) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_sprintf) ) } spids: [251] ) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' ok'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:276) ) ] action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 0123456789ab'))})] spids: [273 278] ) ] else_action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 0123456789'))})] ) ] ) ) (C {(atf_test_case)} {(vsprintf)}) (command.ShFunction name: vsprintf_head body: (command.BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks vsprintf(3)'))})] ) ) (command.ShFunction name: vsprintf_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:349) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_vsprintf) ) } spids: [347] ) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' ok'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:372) ) ] action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 0123456789ab'))})] spids: [369 374] ) ] else_action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 0123456789'))})] ) ] ) ) (C {(atf_test_case)} {(snprintf)}) (command.ShFunction name: snprintf_head body: (command.BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks snprintf(3)'))})] ) ) (command.ShFunction name: snprintf_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:445) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_snprintf) ) } spids: [443] ) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 10'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:468) ) ] action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 13'))})] spids: [465 470] ) ] else_action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 11'))})] ) ] ) ) (C {(atf_test_case)} {(vsnprintf)}) (command.ShFunction name: vsnprintf_head body: (command.BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks vsnprintf(3)'))})] ) ) (command.ShFunction name: vsnprintf_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:541) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_vsnprintf) ) } spids: [539] ) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 10'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:564) ) ] action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 13'))})] spids: [561 566] ) ] else_action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 11'))})] ) ] ) ) (C {(atf_test_case)} {(gets)}) (command.ShFunction name: gets_head body: (command.BraceGroup children:[(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks gets(3)'))})]) ) (command.ShFunction name: gets_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:637) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_gets) ) } spids: [635] ) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog'))} {(DQ ('echo ok |'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:663) ) ] action: [ (C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog'))} {(DQ ('echo 0123456789ab |'))}) ] spids: [660 665] ) ] else_action: [ (C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog'))} {(DQ ('echo 0123456789 |'))}) ] ) ] ) ) (C {(atf_test_case)} {(fgets)}) (command.ShFunction name: fgets_head body: (command.BraceGroup children:[(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks fgets(3)'))})]) ) (command.ShFunction name: fgets_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:742) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_fgets) ) } spids: [740] ) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 10'))} {(DQ ('echo ok |'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:769) ) ] action: [ (C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 13'))} {(DQ ('echo 0123456789abc |'))} ) ] spids: [766 771] ) ] else_action: [ (C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 11'))} {(DQ ('echo busted |'))}) ] ) ] ) ) (C {(atf_test_case)} {(memcpy)}) (command.ShFunction name: memcpy_head body: (command.BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks memcpy(3)'))})] ) ) (command.ShFunction name: memcpy_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:850) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_memcpy) ) } spids: [848] ) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 10'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:873) ) ] action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 13'))})] spids: [870 875] ) ] else_action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 11'))})] ) ] ) ) (C {(atf_test_case)} {(memmove)}) (command.ShFunction name: memmove_head body: (command.BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks memmove(3)'))})] ) ) (command.ShFunction name: memmove_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:946) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_memmove) ) } spids: [944] ) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 10'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:969) ) ] action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 13'))})] spids: [966 971] ) ] else_action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 11'))})] ) ] ) ) (C {(atf_test_case)} {(memset)}) (command.ShFunction name: memset_head body: (command.BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks memset(3)'))})] ) ) (command.ShFunction name: memset_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:1042) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_memset) ) } spids: [1040] ) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 10'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:1065) ) ] action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 13'))})] spids: [1062 1067] ) ] else_action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 11'))})] ) ] ) ) (C {(atf_test_case)} {(strcpy)}) (command.ShFunction name: strcpy_head body: (command.BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks strcpy(3)'))})] ) ) (command.ShFunction name: strcpy_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:1138) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_strcpy) ) } spids: [1136] ) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 0123456'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:1161) ) ] action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 0123456789ab'))})] spids: [1158 1163] ) ] else_action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 0123456789'))})] ) ] ) ) (C {(atf_test_case)} {(stpcpy)}) (command.ShFunction name: stpcpy_head body: (command.BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks stpcpy(3)'))})] ) ) (command.ShFunction name: stpcpy_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:1234) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_stpcpy) ) } spids: [1232] ) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 0123456'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:1257) ) ] action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 0123456789ab'))})] spids: [1254 1259] ) ] else_action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 0123456789'))})] ) ] ) ) (C {(atf_test_case)} {(strcat)}) (command.ShFunction name: strcat_head body: (command.BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks strcat(3)'))})] ) ) (command.ShFunction name: strcat_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:1330) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_strcat) ) } spids: [1328] ) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 0123456'))}) (C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 0123456789ABCDEF'))}) ] ) ) (C {(atf_test_case)} {(strncpy)}) (command.ShFunction name: strncpy_head body: (command.BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks strncpy(3)'))})] ) ) (command.ShFunction name: strncpy_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:1388) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_strncpy) ) } spids: [1386] ) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 10'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:1411) ) ] action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 13'))})] spids: [1408 1413] ) ] else_action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 11'))})] ) ] ) ) (C {(atf_test_case)} {(stpncpy)}) (command.ShFunction name: stpncpy_head body: (command.BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks stpncpy(3)'))})] ) ) (command.ShFunction name: stpncpy_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:1484) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_stpncpy) ) } spids: [1482] ) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 10'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:1507) ) ] action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 13'))})] spids: [1504 1509] ) ] else_action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 11'))})] ) ] ) ) (C {(atf_test_case)} {(strncat)}) (command.ShFunction name: strncat_head body: (command.BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks strncat(3)'))})] ) ) (command.ShFunction name: strncat_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:1580) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_strncat) ) } spids: [1578] ) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 8'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:1603) ) ] action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 11'))})] spids: [1600 1605] ) ] else_action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 9'))})] ) ] ) ) (C {(atf_test_case)} {(raw)}) (command.ShFunction name: raw_head body: (command.BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks raw array overflow'))})] ) ) (command.ShFunction name: raw_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:1676) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_raw) ) } spids: [1674] ) ] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {(Id.Lit_LBracket '[')} {(-x)} {($ Id.VSub_DollarName '$prog')} {(Id.Lit_RBracket ']')} ) (C {(atf_skip)} {(DQ ($ Id.VSub_DollarName '$prog') (' is missing; skipping testcase'))}) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 9'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:1725) ) ] action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 12'))})] spids: [1722 1727] ) ] else_action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 10'))})] ) ] ) ) (C {(atf_test_case)} {(read)}) (command.ShFunction name: read_head body: (command.BraceGroup children:[(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks read(2)'))})]) ) (command.ShFunction name: read_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:1798) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_read) ) } spids: [1796] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:1813) ) ] action: [ (command.AndOr ops: [Id.Op_DPipe] children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:MAX_PATH) op: assign_op.Equal rhs: { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:1819) command_list: (command.CommandList children: [(C {(getconf)} {(_XOPEN_PATH_MAX)})] ) ) } spids: [1818] ) ] ) (C {(atf_fail)} {(DQ ('getconf failed'))}) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' ') ($ Id.VSub_DollarName '$MAX_PATH'))} {(DQ ('echo foo |'))} ) (C {(h_fail)} { (DQ ($ Id.VSub_DollarName '$prog') (' ') (word_part.ArithSub anode: (arith_expr.Binary op_id: Id.Arith_Plus left: (arith_expr.ArithWord w:{($ Id.VSub_DollarName '$MAX_PATH')}) right: (arith_expr.ArithWord w:{(Id.Lit_Digits 3)}) ) ) ) } {(DQ ('echo bar |'))} ) ] spids: [1810 1815] ) ] else_action: [ (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 1024'))} {(DQ ('echo foo |'))}) (C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 1025'))} {(DQ ('echo bar |'))}) ] ) ] ) ) (C {(atf_test_case)} {(readlink)}) (command.ShFunction name: readlink_head body: (command.BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks readlink(2)'))})] ) ) (command.ShFunction name: readlink_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:1945) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_readlink) ) } spids: [1943] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(true)}) terminator: (Token id:Id.Op_Semi val:';' span_id:1960) ) ] action: [ (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 512'))}) (C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 523'))}) ] spids: [1957 1962] ) ] else_action: [ (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 1024'))}) (C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 1025'))}) ] ) ] ) ) (C {(atf_test_case)} {(getcwd)}) (command.ShFunction name: getcwd_head body: (command.BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Checks getcwd(3)'))})] ) ) (command.ShFunction name: getcwd_body body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prog) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:2049) command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) ) (/h_getcwd) ) } spids: [2047] ) ] ) (C {(h_pass)} {(DQ ($ Id.VSub_DollarName '$prog') (' 1024'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(false)}) terminator: (Token id:Id.Op_Semi val:';' span_id:2072) ) ] action: [(C {(h_fail)} {(DQ ($ Id.VSub_DollarName '$prog') (' 1025'))})] spids: [2069 2074] ) ] ) ] ) ) (command.ShFunction name: atf_init_test_cases body: (command.BraceGroup children: [ (C {(atf_add_test_case)} {(sprintf)}) (C {(atf_add_test_case)} {(vsprintf)}) (C {(atf_add_test_case)} {(snprintf)}) (C {(atf_add_test_case)} {(vsnprintf)}) (C {(atf_add_test_case)} {(gets)}) (C {(atf_add_test_case)} {(fgets)}) (C {(atf_add_test_case)} {(memcpy)}) (C {(atf_add_test_case)} {(memmove)}) (C {(atf_add_test_case)} {(memset)}) (C {(atf_add_test_case)} {(stpcpy)}) (C {(atf_add_test_case)} {(stpncpy)}) (C {(atf_add_test_case)} {(strcat)}) (C {(atf_add_test_case)} {(strcpy)}) (C {(atf_add_test_case)} {(strncat)}) (C {(atf_add_test_case)} {(strncpy)}) (C {(atf_add_test_case)} {(raw)}) (C {(atf_add_test_case)} {(read)}) (C {(atf_add_test_case)} {(readlink)}) (C {(atf_add_test_case)} {(getcwd)}) ] ) ) ] )