Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix xattr unit test #118

Merged
merged 1 commit into from Jul 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/all.rs
Expand Up @@ -192,7 +192,9 @@ fn extracting_directories() {
#[test]
#[cfg(all(unix, feature = "xattr"))]
fn xattrs() {
let td = t!(TempDir::new("tar-rs"));
// If /tmp is a tmpfs, xattr will fail
// The xattr crate's unit tests also use /var/tmp for this reason
let td = t!(TempDir::new_in("/var/tmp", "tar-rs"));
let rdr = Cursor::new(tar!("xattrs.tar"));
let mut ar = Archive::new(rdr);
ar.set_unpack_xattrs(true);
Expand Down