summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/pty.cc
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-04-03 10:19:42 -0700
committergVisor bot <gvisor-bot@google.com>2020-04-03 10:20:55 -0700
commit1921c246a9907cd1623af4aabde086af9cf172d8 (patch)
tree1b1f5ca766f8a7741b9f43459977fc6adb768eba /test/syscalls/linux/pty.cc
parentd151693530db68db43188ce0fbc9f81aa5f27e2e (diff)
Internal change.
PiperOrigin-RevId: 304641990
Diffstat (limited to 'test/syscalls/linux/pty.cc')
-rw-r--r--test/syscalls/linux/pty.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/syscalls/linux/pty.cc b/test/syscalls/linux/pty.cc
index dafe64d20..b8a0159ba 100644
--- a/test/syscalls/linux/pty.cc
+++ b/test/syscalls/linux/pty.cc
@@ -1126,7 +1126,7 @@ TEST_F(PtyTest, SwitchTwiceMultiline) {
std::string kExpected = "GO\nBLUE\n!";
// Write each line.
- for (std::string input : kInputs) {
+ for (const std::string& input : kInputs) {
ASSERT_THAT(WriteFd(master_.get(), input.c_str(), input.size()),
SyscallSucceedsWithValue(input.size()));
}