Lines Matching full:assert
30 #include <assert.h>
228 assert(rv == 0); in test_proc_pid_maps()
231 assert(rv == len); in test_proc_pid_maps()
232 assert(memcmp(buf, g_proc_pid_maps_vsyscall, len) == 0); in test_proc_pid_maps()
256 assert(rv == 0); in test_proc_pid_numa_maps()
280 assert(0 <= rv); in test_proc_pid_smaps()
281 assert(rv <= sizeof(buf)); in test_proc_pid_smaps()
284 assert(rv == 0); in test_proc_pid_smaps()
287 assert(rv > len); in test_proc_pid_smaps()
288 assert(memcmp(buf, g_proc_pid_smaps_vsyscall, len) == 0); in test_proc_pid_smaps()
292 assert(memmem(buf, rv, PROTECTION_KEY, strlen(PROTECTION_KEY))); in test_proc_pid_smaps()
343 assert(rv == sizeof(g_smaps_rollup) - 1); in test_proc_pid_smaps_rollup()
344 assert(memcmp(buf, g_smaps_rollup, sizeof(g_smaps_rollup) - 1) == 0); in test_proc_pid_smaps_rollup()
354 assert(!__builtin_mul_overflow(*rv, 10, rv)); in parse_u64()
355 assert(!__builtin_add_overflow(*rv, *p - '0', rv)); in parse_u64()
360 assert(p != end); in parse_u64()
382 assert(rv >= 0); in test_proc_pid_statm()
383 assert(rv <= sizeof(buf)); in test_proc_pid_statm()
389 assert(p != end && *p++ == '0'); in test_proc_pid_statm()
390 assert(p != end && *p++ == ' '); in test_proc_pid_statm()
394 assert(p != end && *p++ == ' '); in test_proc_pid_statm()
398 assert(p != end && *p++ == ' '); in test_proc_pid_statm()
402 assert(p != end && *p++ == ' '); in test_proc_pid_statm()
404 assert(p != end && *p++ == '0'); in test_proc_pid_statm()
405 assert(p != end && *p++ == ' '); in test_proc_pid_statm()
408 assert(p != end && *p++ == '0'); in test_proc_pid_statm()
409 assert(p != end && *p++ == ' '); in test_proc_pid_statm()
411 assert(p != end && *p++ == '0'); in test_proc_pid_statm()
412 assert(p != end && *p++ == '\n'); in test_proc_pid_statm()
414 assert(p == end); in test_proc_pid_statm()
422 assert(text > 0); in test_proc_pid_statm()
430 assert(resident == shared); in test_proc_pid_statm()
530 assert(WIFSTOPPED(wstatus)); in main()
531 assert(WSTOPSIG(wstatus) == SIGSEGV); in main()