@@ -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}
228222pub fn main ( ) {
229223 std:: process:: exit ( main_0 ( ) ) ;
0 commit comments