test: handle one more error gracefully

Fixes #27175.
This commit is contained in:
Yu Watanabe
2023-04-07 20:54:23 +02:00
committed by Daan De Meyer
parent b24b10592d
commit b6b446cb62
+2 -1
View File
@@ -1067,7 +1067,8 @@ static void test_read_virtual_file_one(size_t max_size) {
IN_SET(r,
-ENOENT, /* Some of the files might be absent */
-EINVAL, /* too small reads from /proc/self/pagemap trigger EINVAL */
-EFBIG)); /* /proc/kcore and /proc/self/pagemap should be too large */
-EFBIG, /* /proc/kcore and /proc/self/pagemap should be too large */
-EBADF)); /* /proc/kcore is masked when we are running in docker. */
} else
log_info("read_virtual_file(\"%s\", %zu): %s (%zu bytes)", filename, max_size, r ? "non-truncated" : "truncated", size);
}