Lines Matching refs:VERIFY
42 #define VERIFY(expr) \ macro
76 VERIFY (target_len > 0); in proc_fd_readlink()
291 VERIFY ((slavename = ptsname (master))); in do_in_chroot_1()
292 VERIFY (unlockpt (master) == 0); in do_in_chroot_1()
310 VERIFY (mount ("tmpfs", chrootdir, "tmpfs", 0, "mode=755") == 0); in do_in_chroot_1()
311 VERIFY (chdir (chrootdir) == 0); in do_in_chroot_1()
317 VERIFY (mount ("/proc", "proc", NULL, MS_BIND|MS_REC, NULL) == 0); in do_in_chroot_1()
318 VERIFY (mount ("devpts", "dev/pts", "devpts", in do_in_chroot_1()
321 VERIFY (symlink ("pts/ptmx", "dev/ptmx") == 0); in do_in_chroot_1()
325 VERIFY (mount (slavename, "console", NULL, MS_BIND, NULL) == 0); in do_in_chroot_1()
331 VERIFY (strcmp (target, slavename) == 0); in do_in_chroot_1()
338 VERIFY (WIFEXITED (status)); in do_in_chroot_1()
357 VERIFY ((master = posix_openpt (O_RDWR|O_NOCTTY|O_NONBLOCK)) >= 0); in do_in_chroot_2()
358 VERIFY ((slavename = ptsname (master))); in do_in_chroot_2()
359 VERIFY (unlockpt (master) == 0); in do_in_chroot_2()
367 VERIFY (prctl (PR_SET_CHILD_SUBREAPER, 1) == 0); in do_in_chroot_2()
384 VERIFY (mount ("tmpfs", chrootdir, "tmpfs", 0, "mode=755") == 0); in do_in_chroot_2()
385 VERIFY (chdir (chrootdir) == 0); in do_in_chroot_2()
391 VERIFY (mount ("devpts", "dev/pts", "devpts", in do_in_chroot_2()
394 VERIFY (symlink ("pts/ptmx", "dev/ptmx") == 0); in do_in_chroot_2()
398 VERIFY (mount (slavename, "console", NULL, MS_BIND, NULL) == 0); in do_in_chroot_2()
411 VERIFY (read (exit_pipe[0], &c, 1) == 0); in do_in_chroot_2()
414 VERIFY (mount ("proc", "/proc", "proc", in do_in_chroot_2()
419 VERIFY (strcmp (target, strrchr (slavename, '/')) == 0); in do_in_chroot_2()
434 VERIFY (WIFEXITED (status)); in do_in_chroot_2()
440 VERIFY (read (pid_pipe[0], &pid, sizeof pid) == sizeof pid); in do_in_chroot_2()
445 VERIFY (WIFEXITED (status)); in do_in_chroot_2()
467 VERIFY (stat (slavename, &st) < 0); /* sanity check */ in run_chroot_tests()
471 VERIFY (mount ("/console", "/dev/console", NULL, MS_BIND, NULL) == 0); in run_chroot_tests()
475 VERIFY (umount ("/dev/console") == 0); in run_chroot_tests()
495 VERIFY (mount ("/console", "/dev/console", NULL, MS_BIND, NULL) == 0); in run_chroot_tests()
499 VERIFY (umount ("/dev/console") == 0); in run_chroot_tests()
519 VERIFY (errno == ENOENT); in run_chroot_tests()
523 VERIFY (mount ("/console", "/dev/console", NULL, MS_BIND, NULL) == 0); in run_chroot_tests()
524 VERIFY (mount ("/console", target, NULL, MS_BIND, NULL) == 0); in run_chroot_tests()
528 VERIFY (umount (target) == 0); in run_chroot_tests()
529 VERIFY (umount ("/dev/console") == 0); in run_chroot_tests()
531 VERIFY (mount ("/console", "/dev/console", NULL, MS_BIND, NULL) == 0); in run_chroot_tests()
532 VERIFY (mount (slavename, target, NULL, MS_BIND, NULL) == 0); in run_chroot_tests()
536 VERIFY (umount (target) == 0); in run_chroot_tests()
537 VERIFY (umount ("/dev/console") == 0); in run_chroot_tests()
539 VERIFY (mount (slavename, target, NULL, MS_BIND, NULL) == 0); in run_chroot_tests()
543 VERIFY (umount (target) == 0); in run_chroot_tests()
560 VERIFY (umount2 ("/proc", MNT_DETACH) == 0); in run_chroot_tests()
569 VERIFY (dirstream != NULL); in run_chroot_tests()
579 VERIFY (ci == 3); in run_chroot_tests()
580 VERIFY (closedir (dirstream) == 0); in run_chroot_tests()
582 VERIFY (mount (slavename, c[0], NULL, MS_BIND, NULL) == 0); in run_chroot_tests()
583 VERIFY (mount ("/console", c[1], NULL, MS_BIND, NULL) == 0); in run_chroot_tests()
584 VERIFY (mount (slavename, c[2], NULL, MS_BIND, NULL) == 0); in run_chroot_tests()
585 VERIFY (umount2 ("/dev/pts", MNT_DETACH) == 0); in run_chroot_tests()
591 VERIFY (umount (c[i]) == 0); in run_chroot_tests()
592 VERIFY (unlink (c[i]) == 0); in run_chroot_tests()