@@ -219,58 +219,19 @@ pub unsafe fn test_ftruncate_5() {
219219 assert ! ( ( ( ( ( libc:: fclose( fp) ) == ( 0 ) ) as i32 ) != 0 ) ) ;
220220 libc:: unlink ( path as * const i8 ) ;
221221}
222- pub unsafe fn test_open_6 ( ) {
223- let mut fd: i32 = ( unsafe {
224- libc:: open (
225- ( b"/dev/null\0 " . as_ptr ( ) . cast_mut ( ) ) . cast_const ( ) as * const i8 ,
226- 0 as i32 ,
227- ( 420 ) ,
228- )
229- } ) ;
230- assert ! ( ( ( ( ( fd) >= ( -1_i32 ) ) as i32 ) != 0 ) ) ;
231- if ( ( ( ( fd) >= ( 0 ) ) as i32 ) != 0 ) {
232- libc:: close ( fd) ;
233- }
234- fd = ( unsafe {
235- libc:: open (
236- ( b"/dev/null\0 " . as_ptr ( ) . cast_mut ( ) ) . cast_const ( ) as * const i8 ,
237- 0 as i32 ,
238- )
239- } ) ;
240- assert ! ( ( ( ( ( fd) >= ( -1_i32 ) ) as i32 ) != 0 ) ) ;
241- if ( ( ( ( fd) >= ( 0 ) ) as i32 ) != 0 ) {
242- libc:: close ( fd) ;
243- }
244- }
245- pub unsafe fn test_fcntl_7 ( ) {
246- assert ! ( ( ( ( ( unsafe { libc:: fcntl( 0 as i32 , 1 as i32 , ) } ) >= ( -1_i32 ) ) as i32 ) != 0 ) ) ;
247- let mut duped: i32 = ( unsafe { libc:: fcntl ( 0 as i32 , 0 as i32 , ( 100 ) ) } ) ;
248- assert ! ( ( ( ( ( duped) >= ( -1_i32 ) ) as i32 ) != 0 ) ) ;
249- if ( ( ( ( duped) >= ( 0 ) ) as i32 ) != 0 ) {
250- libc:: close ( duped) ;
251- }
252- }
253- pub unsafe fn test_ioctl_8 ( ) {
254- let mut arg: i32 = 0 ;
255- assert ! (
256- ( ( ( ( unsafe { libc:: ioctl( 0 as i32 , 0_u64 as u64 , ( & mut arg as * mut i32 ) , ) } ) >= ( -1_i32 ) )
257- as i32 )
258- != 0 )
259- ) ;
260- }
261- pub unsafe fn test_isatty_9 ( ) {
222+ pub unsafe fn test_isatty_6 ( ) {
262223 printf (
263224 ( b"%d\n \0 " . as_ptr ( ) . cast_mut ( ) ) . cast_const ( ) as * const i8 ,
264225 libc:: isatty ( 0 ) ,
265226 ) ;
266227}
267- pub unsafe fn test_geteuid_10 ( ) {
228+ pub unsafe fn test_geteuid_7 ( ) {
268229 printf (
269230 ( b"%u\n \0 " . as_ptr ( ) . cast_mut ( ) ) . cast_const ( ) as * const i8 ,
270231 libc:: geteuid ( ) ,
271232 ) ;
272233}
273- pub unsafe fn test_gethostname_11 ( ) {
234+ pub unsafe fn test_gethostname_8 ( ) {
274235 let mut name: [ u8 ; 256 ] = [ 0_u8 ; 256 ] ;
275236 assert ! (
276237 ( ( ( ( libc:: gethostname(
@@ -296,11 +257,8 @@ unsafe fn main_0() -> i32 {
296257 ( unsafe { test_unlink_3 ( ) } ) ;
297258 ( unsafe { test_pipe_4 ( ) } ) ;
298259 ( unsafe { test_ftruncate_5 ( ) } ) ;
299- ( unsafe { test_open_6 ( ) } ) ;
300- ( unsafe { test_fcntl_7 ( ) } ) ;
301- ( unsafe { test_ioctl_8 ( ) } ) ;
302- ( unsafe { test_isatty_9 ( ) } ) ;
303- ( unsafe { test_geteuid_10 ( ) } ) ;
304- ( unsafe { test_gethostname_11 ( ) } ) ;
260+ ( unsafe { test_isatty_6 ( ) } ) ;
261+ ( unsafe { test_geteuid_7 ( ) } ) ;
262+ ( unsafe { test_gethostname_8 ( ) } ) ;
305263 return 0 ;
306264}
0 commit comments