fn utils_set_open_file_limit_with_high_requested_limit() {
        let (_, hard) = getrlimit(Resource::NOFILE).unwrap();
        let higher_limit = hard + 1;
        // calculate a new soft to ensure soft != hard and hit that logic branch
        let new_soft = hard - 1;
        setrlimit(Resource::NOFILE, new_soft, hard).unwrap();
        assert!(set_open_file_limit(higher_limit));
    }
/// set_open_file_limit with a high requested limit succeeds
set_open_file_limit with a high requested limit succeeds
set_open_file_limit with a high requested limit succeeds
fn utils_set_open_file_limit_with_high_requested_limit() {
        let (_, hard) = getrlimit(Resource::NOFILE).unwrap();
        let higher_limit = hard + 1;
        // calculate a new soft to ensure soft != hard and hit that logic branch
        let new_soft = hard - 1;
        setrlimit(Resource::NOFILE, new_soft, hard).unwrap();
        assert!(set_open_file_limit(higher_limit));
    }
fn utils_set_open_file_limit_with_high_requested_limit ( ) { let ( _ , hard ) = getrlimit ( Resource :: NOFILE ) . unwrap ( ) ; let higher_limit = hard + 1 ; // calculate a new soft to ensure soft != hard and hit that logic branch let new_soft = hard - 1 ; setrlimit ( Resource :: NOFILE , new_soft , hard ) . unwrap ( ) ; assert ! ( set_open_file_limit ( higher_limit ) ) ; }
set_open_file_limit with a high requested limit succeeds
set_open_file_limit with a high requested limit succeeds