From e823d729abce0111672571289e0fbe0d0dc0f26f Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 24 Mar 2020 21:13:14 +0100 Subject: [PATCH] test: remove unnecessary uv_fs_stat() calls `check_utime()` already calls `uv_fs_stat()`, no point in doing it twice. PR-URL: https://github.com/libuv/libuv/pull/2747 Reviewed-By: Colin Ihrig --- test/test-fs.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/test-fs.c b/test/test-fs.c index aca7a2ae..89d00f2a 100644 --- a/test/test-fs.c +++ b/test/test-fs.c @@ -2539,11 +2539,7 @@ TEST_IMPL(fs_utime) { ASSERT(req.result == 0); uv_fs_req_cleanup(&req); - r = uv_fs_stat(NULL, &req, path, NULL); - ASSERT(r == 0); - ASSERT(req.result == 0); check_utime(path, atime, mtime, /* test_lutime */ 0); - uv_fs_req_cleanup(&req); atime = mtime = 1291404900; /* 2010-12-03 20:35:00 - mees <3 */ checkme.path = path; @@ -2645,11 +2641,7 @@ TEST_IMPL(fs_futime) { #endif uv_fs_req_cleanup(&req); - r = uv_fs_stat(NULL, &req, path, NULL); - ASSERT(r == 0); - ASSERT(req.result == 0); check_utime(path, atime, mtime, /* test_lutime */ 0); - uv_fs_req_cleanup(&req); atime = mtime = 1291404900; /* 2010-12-03 20:35:00 - mees <3 */