Skip to content

extra::tempfile::TempDir causes IoError during Drop #10462

Closed
@klutzy

Description

@klutzy
use std::os;
use extra::tempfile::TempDir;
fn main() {
    let temp_dir = TempDir::new("asdf").unwrap();
    os::change_dir(temp_dir.path());
}
task '<main>' failed at 'Unhandled condition: io_error:
io::IoError{kind: OtherIoError, desc: "resource busy or locked", detail: None}',

TempDir has Drop implementation of calling rmdir the dir, but it may fail (platform-dependent) if the task change_dired.
part of #10452: run-pass/glob-std.rs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions