From f4d34b420bd30b9c3725f9247c9145808aab0ffb Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Fri, 26 Apr 2019 11:06:59 -0700 Subject: Change name of sticky test arg. PiperOrigin-RevId: 245451875 Change-Id: Icee2c4ed74564e77454c60d60f456454443ccadf --- test/syscalls/linux/sticky.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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)); -- cgit v1.2.3