From d7a50ffda7dfd88b46af56cc92378f6cbafc3261 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 15 Dec 2025 13:53:07 -0600 Subject: [PATCH] tests.cpp --- tests/tests.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/tests.cpp b/tests/tests.cpp index 7397129b..c49fc4a7 100644 --- a/tests/tests.cpp +++ b/tests/tests.cpp @@ -329,6 +329,11 @@ test_rmdir() rv = unlinkat(root_fd,"test-dir",AT_REMOVEDIR); TEST_CHECK(rv == 0); + int file2_fd; + file2_fd = openat(root_fd,"test-file",O_CREAT|O_EXCL,0555); + TEST_CHECK(file2_fd >= 0); + + struct stat st; rv = fstatat(file_fd,"",&st,AT_EMPTY_PATH); TEST_CHECK(rv == 0);