From d4546dbce037069393157c46bcf7535aae59d5b8 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Thu, 29 Jan 2026 17:24:06 +0700 Subject: [PATCH] Adjust fnctl/open test assert --- tests/fcntl/open.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/fcntl/open.c b/tests/fcntl/open.c index c6f36a4401..18a6042939 100644 --- a/tests/fcntl/open.c +++ b/tests/fcntl/open.c @@ -103,9 +103,10 @@ int cloexec_validate(int argc, char* argv[]) { } int main(int argc, char* argv[]) { + // The test runner inserts two fixed arg, so argc == 2 is fine if (argc == 2) { return cloexec_validate(argc, argv); - } else if (argc != 1) { + } else if (argc == 0) { fprintf( stderr, "Invalid number of arguments: %d\n",