Skip to content

Commit 29af8cd

Browse files
committed
fix test
1 parent 92a0553 commit 29af8cd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/unit/out/refcount/pwd.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ pub fn test_getpwuid_r_erange_3() {
214214
__e as i32
215215
}
216216
}
217-
} == 34) as i32)
217+
} == libc::ERANGE) as i32)
218218
!= 0)
219219
);
220220
assert!(((((*result.borrow()).is_null()) as i32) != 0));

‎tests/unit/out/unsafe/pwd.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub unsafe fn test_getpwuid_r_erange_3() {
6363
tiny.as_mut_ptr(),
6464
::std::mem::size_of::<[libc::c_char; 1]>(),
6565
(&mut result as *mut *mut ::libc::passwd)
66-
)) == (34)) as i32)
66+
)) == (libc::ERANGE)) as i32)
6767
!= 0)
6868
);
6969
assert!(((((result).is_null()) as i32) != 0));

0 commit comments

Comments
 (0)