summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2017-09-06 18:02:32 -0600
committerGitHub <noreply@github.com>2017-09-06 18:02:32 -0600
commit5c031960bc4c0b9f57203c7977f9c2b2f5e47416 (patch)
tree19edcc1a4ee7ba2dea7bdf9f34f59f5d783b3b6a
parent37186c421956b5c249afab25c436232a0461a7c0 (diff)
parent63a7af156d924ecbcaf20cba576d1b11fe7f31e3 (diff)
downloadnix-5c031960bc4c0b9f57203c7977f9c2b2f5e47416.zip
Merge pull request #762 from Mic92/stat-tests
test/test_stat.rs: test correct stat function
-rw-r--r--test/test_stat.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_stat.rs b/test/test_stat.rs
index 765d4fa1..900def89 100644
--- a/test/test_stat.rs
+++ b/test/test_stat.rs
@@ -76,7 +76,7 @@ fn test_stat_and_fstat() {
#[test]
fn test_fstatat() {
- let tempdir = TempDir::new("nix-test_stat_and_fstat").unwrap();
+ let tempdir = TempDir::new("nix-test_fstatat").unwrap();
let filename = tempdir.path().join("foo.txt");
File::create(&filename).unwrap();
let dirfd = fcntl::open(tempdir.path(),
@@ -101,7 +101,7 @@ fn test_stat_fstat_lstat() {
// should be the same result as calling stat,
// since it's a regular file
- let stat_result = lstat(&filename);
+ let stat_result = stat(&filename);
assert_stat_results(stat_result);
let lstat_result = lstat(&linkname);