diff options
author | Kevin Krakauer <krakauer@google.com> | 2021-06-14 17:14:09 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-06-14 17:17:34 -0700 |
commit | 20c68160459a5f2393facc30f24be5770e628428 (patch) | |
tree | 8fb54e4db9d8378a93e158ec4550e077f75d235c /test/syscalls/linux/uname.cc | |
parent | d4af8da36160643614cae2405c5d829bb7c1bf78 (diff) |
Cleanup lint messages
PiperOrigin-RevId: 379380041
Diffstat (limited to 'test/syscalls/linux/uname.cc')
-rw-r--r-- | test/syscalls/linux/uname.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/syscalls/linux/uname.cc b/test/syscalls/linux/uname.cc index 759ea4f53..c52abef5c 100644 --- a/test/syscalls/linux/uname.cc +++ b/test/syscalls/linux/uname.cc @@ -88,7 +88,7 @@ TEST(UnameTest, UnshareUTS) { struct utsname init; ASSERT_THAT(uname(&init), SyscallSucceeds()); - ScopedThread([&]() { + ScopedThread thread = ScopedThread([&]() { EXPECT_THAT(unshare(CLONE_NEWUTS), SyscallSucceeds()); constexpr char kHostname[] = "wubbalubba"; @@ -97,6 +97,7 @@ TEST(UnameTest, UnshareUTS) { char hostname[65]; EXPECT_THAT(gethostname(hostname, sizeof(hostname)), SyscallSucceeds()); }); + thread.Join(); struct utsname after; EXPECT_THAT(uname(&after), SyscallSucceeds()); |