Skip to content

Commit b69ec65

Browse files
committed
Update tests
1 parent e6fca32 commit b69ec65

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ pub fn test_getpwuid_r_2() {
8282
let __needed: usize = __strs.iter().map(|__s| __s.len() + 1).sum();
8383
if __needed > __buflen {
8484
__out.write(Ptr::null());
85-
libcc2rs::cpp2rust_errno().write(::libc::ERANGE);
8685
::libc::ERANGE
8786
} else {
8887
let mut __ptrs: Vec<Ptr<u8>> = Vec::new();
@@ -107,7 +106,6 @@ pub fn test_getpwuid_r_2() {
107106
}
108107
Err(__e) => {
109108
__out.write(Ptr::null());
110-
libcc2rs::cpp2rust_errno().write(__e as i32);
111109
__e as i32
112110
}
113111
}
@@ -169,7 +167,6 @@ pub fn test_getpwuid_r_erange_3() {
169167
));
170168
let result: Value<Ptr<libcc2rs::Passwd>> =
171169
Rc::new(RefCell::new(Ptr::<libcc2rs::Passwd>::null()));
172-
libcc2rs::cpp2rust_errno().write(0);
173170
assert!(
174171
((({
175172
let __pwbuf = (pw.as_pointer()).clone();
@@ -190,7 +187,6 @@ pub fn test_getpwuid_r_erange_3() {
190187
let __needed: usize = __strs.iter().map(|__s| __s.len() + 1).sum();
191188
if __needed > __buflen {
192189
__out.write(Ptr::null());
193-
libcc2rs::cpp2rust_errno().write(::libc::ERANGE);
194190
::libc::ERANGE
195191
} else {
196192
let mut __ptrs: Vec<Ptr<u8>> = Vec::new();
@@ -215,15 +211,13 @@ pub fn test_getpwuid_r_erange_3() {
215211
}
216212
Err(__e) => {
217213
__out.write(Ptr::null());
218-
libcc2rs::cpp2rust_errno().write(__e as i32);
219214
__e as i32
220215
}
221216
}
222217
} == 34) as i32)
223218
!= 0)
224219
);
225220
assert!(((((*result.borrow()).is_null()) as i32) != 0));
226-
assert!(((((libcc2rs::cpp2rust_errno().read()) == 34) as i32) != 0));
227221
}
228222
pub fn main() {
229223
std::process::exit(main_0());

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ pub unsafe fn test_getpwuid_r_erange_3() {
5656
let mut pw: ::libc::passwd = unsafe { std::mem::zeroed() };
5757
let mut tiny: [libc::c_char; 1] = [(0 as libc::c_char); 1];
5858
let mut result: *mut ::libc::passwd = std::ptr::null_mut();
59-
(*libcc2rs::cpp2rust_errno_unsafe()) = 0;
6059
assert!(
6160
((((libc::getpwuid_r(
6261
libc::geteuid(),
@@ -68,7 +67,6 @@ pub unsafe fn test_getpwuid_r_erange_3() {
6867
!= 0)
6968
);
7069
assert!(((((result).is_null()) as i32) != 0));
71-
assert!(((((*libcc2rs::cpp2rust_errno_unsafe()) == (34)) as i32) != 0));
7270
}
7371
pub fn main() {
7472
unsafe {

0 commit comments

Comments
 (0)