Lines Matching refs:check
34 check (const char *msg, bool statement) in check() function
70 check ("e_shnum == 0", ehdr.e_shnum == 0); in test()
71 check ("e_phnum == 0", ehdr.e_phnum == 0); in test()
72 check ("e_shoff == 0", ehdr.e_shoff == 0); in test()
73 check ("e_phoff == 0", ehdr.e_phoff == 0); in test()
77 check ("shnum == 0", shnum == 0); in test()
81 check ("phnum == 0", phnum == 0); in test()
93 check ("EI_DATA", ehdr.e_ident[EI_DATA] != ELFDATANONE); in test()
94 check ("e_version", ehdr.e_version == EV_CURRENT); in test()
97 check ("e_shnum == 0", ehdr.e_shnum == 0); in test()
98 check ("e_phnum == 0", ehdr.e_phnum == 0); in test()
99 check ("e_shoff == 0", ehdr.e_shoff == 0); in test()
100 check ("e_phoff == 0", ehdr.e_phoff == 0); in test()
103 check ("shnum == 0", shnum == 0); in test()
106 check ("phnum == 0", phnum == 0); in test()
127 check ("shnum == 1", shnum == 2); /* section zero is also created. */ in test()
130 check ("phnum == 1", phnum == 1); in test()
134 check ("EI_DATA", ehdr.e_ident[EI_DATA] != ELFDATANONE); in test()
135 check ("e_version", ehdr.e_version == EV_CURRENT); in test()
137 check ("e_shnum == 2", ehdr.e_shnum == 2); in test()
138 check ("e_phnum == 1", ehdr.e_phnum == 1); in test()
139 check ("e_shoff != 0", ehdr.e_shoff != 0); in test()
140 check ("e_phoff != 0", ehdr.e_phoff != 0); in test()
144 check ("e_shentsize", ehdr.e_shentsize == shentsize); in test()
147 check ("e_phentsize", ehdr.e_phentsize == phentsize); in test()
156 check ("open", fd >= 0); in main()