Skip to content

Commit d557810

Browse files
committed
Merge #762
762: test/test_stat.rs: test correct stat function r=Susurrus a=Mic92
2 parents 413fcab + 63a7af1 commit d557810

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_stat.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fn test_stat_and_fstat() {
7676

7777
#[test]
7878
fn test_fstatat() {
79-
let tempdir = TempDir::new("nix-test_stat_and_fstat").unwrap();
79+
let tempdir = TempDir::new("nix-test_fstatat").unwrap();
8080
let filename = tempdir.path().join("foo.txt");
8181
File::create(&filename).unwrap();
8282
let dirfd = fcntl::open(tempdir.path(),
@@ -101,7 +101,7 @@ fn test_stat_fstat_lstat() {
101101

102102
// should be the same result as calling stat,
103103
// since it's a regular file
104-
let stat_result = lstat(&filename);
104+
let stat_result = stat(&filename);
105105
assert_stat_results(stat_result);
106106

107107
let lstat_result = lstat(&linkname);

0 commit comments

Comments
 (0)