Skip to content

Commit 679e2e3

Browse files
committed
Update tests
1 parent 4f6bc2f commit 679e2e3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/unit/out/refcount/libc_char_ptr_field.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ fn main_0() -> i32 {
1515
nix::unistd::geteuid().as_raw(),
1616
)) {
1717
Ok(Some(__u)) => Ptr::alloc(Passwd::from_user(&__u)),
18-
_ => Ptr::null(),
18+
Ok(None) => Ptr::null(),
19+
Err(__e) => {
20+
libcc2rs::cpp2rust_errno().write(__e as i32);
21+
Ptr::null()
22+
}
1923
},
2024
));
2125
if !!(*pw.borrow()).is_null() {

0 commit comments

Comments
 (0)