Lines Matching full:assert
28 #include <assert.h>
365 assert(rv == len); in main()
366 assert(memcmp(buf, buf0, strlen(buf0)) == 0); in main()
368 assert(memcmp(buf + strlen(buf0), str_vsyscall, strlen(str_vsyscall)) == 0); in main()
384 assert(0 <= rv && rv <= sizeof(buf)); in main()
386 assert(rv >= strlen(buf0)); in main()
387 assert(memcmp(buf, buf0, strlen(buf0)) == 0); in main()
393 assert(memmem(buf, rv, RSS1, strlen(RSS1)) || in main()
395 assert(memmem(buf, rv, PSS1, strlen(PSS1)) || in main()
411 assert(memmem(buf, rv, S[i], strlen(S[i]))); in main()
415 assert(memmem(buf, rv, str_vsyscall, strlen(str_vsyscall))); in main()
440 assert(0 <= rv && rv <= sizeof(buf)); in main()
442 assert(rv >= strlen(bufr)); in main()
443 assert(memcmp(buf, bufr, strlen(bufr)) == 0); in main()
445 assert(memmem(buf, rv, RSS1, strlen(RSS1)) || in main()
447 assert(memmem(buf, rv, PSS1, strlen(PSS1)) || in main()
460 assert(memmem(buf, rv, S[i], strlen(S[i]))); in main()
476 assert(rv == 7 * 2); in main()
478 assert(buf[0] == '1'); /* ->total_vm */ in main()
479 assert(buf[1] == ' '); in main()
480 assert(buf[2] == '0' || buf[2] == '1'); /* rss */ in main()
481 assert(buf[3] == ' '); in main()
482 assert(buf[4] == '0' || buf[2] == '1'); /* file rss */ in main()
483 assert(buf[5] == ' '); in main()
484 assert(buf[6] == '1'); /* ELF executable segments */ in main()
485 assert(buf[7] == ' '); in main()
486 assert(buf[8] == '0'); in main()
487 assert(buf[9] == ' '); in main()
488 assert(buf[10] == '0'); /* ->data_vm + ->stack_vm */ in main()
489 assert(buf[11] == ' '); in main()
490 assert(buf[12] == '0'); in main()
491 assert(buf[13] == '\n'); in main()