From c3ff44c80b699bae3ecd8a878eeeee18220045c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 4 Sep 2017 08:26:57 +0100 Subject: test/test_stat.rs: test correct stat function --- test/test_stat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_stat.rs b/test/test_stat.rs index 765d4fa1..9c602060 100644 --- a/test/test_stat.rs +++ b/test/test_stat.rs @@ -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); -- cgit v1.2.3 From 63a7af156d924ecbcaf20cba576d1b11fe7f31e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 4 Sep 2017 17:32:21 +0100 Subject: test/test_stat.rs: use matching tempdir name for test_fstatat --- test/test_stat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_stat.rs b/test/test_stat.rs index 9c602060..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(), -- cgit v1.2.3