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