diff options
author | Kevin Krakauer <krakauer@google.com> | 2019-04-26 11:06:59 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-04-26 11:08:08 -0700 |
commit | f4d34b420bd30b9c3725f9247c9145808aab0ffb (patch) | |
tree | 474743569e1d0b00d5e6f37f6aa2a33323299382 /test/syscalls/linux/sticky.cc | |
parent | f17cfa4d53742923b5c91b149b82a05bcda3ea20 (diff) |
Change name of sticky test arg.
PiperOrigin-RevId: 245451875
Change-Id: Icee2c4ed74564e77454c60d60f456454443ccadf
Diffstat (limited to 'test/syscalls/linux/sticky.cc')
-rw-r--r-- | test/syscalls/linux/sticky.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/syscalls/linux/sticky.cc b/test/syscalls/linux/sticky.cc index 563763d10..58cf0d014 100644 --- a/test/syscalls/linux/sticky.cc +++ b/test/syscalls/linux/sticky.cc @@ -27,7 +27,7 @@ #include "test/util/test_util.h" #include "test/util/thread_util.h" -DEFINE_int32(scratch_uid1, 65534, "first scratch UID"); +DEFINE_int32(scratch_uid, 65534, "first scratch UID"); DEFINE_int32(scratch_gid, 65534, "first scratch GID"); namespace gvisor { @@ -54,7 +54,7 @@ TEST(StickyTest, StickyBitPermDenied) { // Change EUID and EGID. EXPECT_THAT(syscall(SYS_setresgid, -1, FLAGS_scratch_gid, -1), SyscallSucceeds()); - EXPECT_THAT(syscall(SYS_setresuid, -1, FLAGS_scratch_uid1, -1), + EXPECT_THAT(syscall(SYS_setresuid, -1, FLAGS_scratch_uid, -1), SyscallSucceeds()); EXPECT_THAT(rmdir(path.c_str()), SyscallFailsWithErrno(EPERM)); @@ -103,7 +103,7 @@ TEST(StickyTest, StickyBitCapFOWNER) { // Change EUID and EGID. EXPECT_THAT(syscall(SYS_setresgid, -1, FLAGS_scratch_gid, -1), SyscallSucceeds()); - EXPECT_THAT(syscall(SYS_setresuid, -1, FLAGS_scratch_uid1, -1), + EXPECT_THAT(syscall(SYS_setresuid, -1, FLAGS_scratch_uid, -1), SyscallSucceeds()); EXPECT_NO_ERRNO(SetCapability(CAP_FOWNER, true)); |