We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfe8030 commit 15845cbCopy full SHA for 15845cb
tools/testing/selftests/openat2/openat2_test.c
@@ -155,7 +155,7 @@ struct flag_test {
155
int err;
156
};
157
158
-#define NUM_OPENAT2_FLAG_TESTS 24
+#define NUM_OPENAT2_FLAG_TESTS 25
159
160
void test_openat2_flags(void)
161
{
@@ -229,6 +229,11 @@ void test_openat2_flags(void)
229
{ .name = "invalid how.resolve and O_PATH",
230
.how.flags = O_PATH,
231
.how.resolve = 0x1337, .err = -EINVAL },
232
+
233
+ /* currently unknown upper 32 bit rejected. */
234
+ { .name = "currently unknown bit (1 << 63)",
235
+ .how.flags = O_RDONLY | (1ULL << 63),
236
+ .how.resolve = 0, .err = -EINVAL },
237
238
239
BUILD_BUG_ON(ARRAY_LEN(tests) != NUM_OPENAT2_FLAG_TESTS);
0 commit comments