From 1bd7cc5ce99367d159f4025ab8cb548e75c5a8c8 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Thu, 15 Aug 2019 10:45:58 -0400 Subject: [PATCH] test: remove assertion in fs_statfs test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The f_files value can equal 0, making the current assertion incorrect. Including 0 in the assertion range leads to a type-limits compiler warning. So, this commit just removes the redundant assertion. Fixes: https://github.com/libuv/libuv/issues/2417 PR-URL: https://github.com/libuv/libuv/pull/2426 Reviewed-By: Saúl Ibarra Corretgé --- test/test-fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-fs.c b/test/test-fs.c index 0d92b0d3..9326c6bc 100644 --- a/test/test-fs.c +++ b/test/test-fs.c @@ -354,7 +354,7 @@ static void statfs_cb(uv_fs_t* req) { ASSERT(stats->f_files == 0); ASSERT(stats->f_ffree == 0); #else - ASSERT(stats->f_files > 0); + /* There is no assertion for stats->f_files that makes sense, so ignore it. */ ASSERT(stats->f_ffree <= stats->f_files); #endif uv_fs_req_cleanup(req);