Lines Matching refs:expect
46 match unsafe { fork() }.expect("Error: Fork Failed") {
75 match unsafe { fork() }.expect("Error: Fork Failed") {
461 fchdir(tmpdir_fd).expect("assertion failed");
464 close(tmpdir_fd).expect("assertion failed");
474 chdir(&tmpdir_path).expect("assertion failed");
486 .expect("assertion failed");
488 chdir(inner_tmp_dir.as_path()).expect("assertion failed");
647 .expect("fpathconf failed")
648 .expect("PATH_MAX is unlimited")
659 .expect("pathconf failed")
660 .expect("PATH_MAX is unlimited")
671 .expect("sysconf failed")
672 .expect("OPEN_MAX is unlimited")
684 assert!(open_max.expect("sysconf failed").is_none())
827 .expect("unable to set signal handler for alarm")
852 .expect("unable to set signal handler for alarm");
1173 .expect("assertion failed");
1238 let fd = posix_openpt(OFlag::O_RDWR).expect("posix_openpt failed");
1244 grantpt(&fd).expect("grantpt failed");
1245 unlockpt(&fd).expect("unlockpt failed");
1246 let sname = unsafe { ptsname(&fd) }.expect("ptsname failed");
1248 .expect("open failed");
1251 let name = ttyname(fds).expect("ttyname failed");
1406 .expect("assertion failed");