summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2019-03-27 17:43:30 -0700
committerShentubot <shentubot@google.com>2019-03-27 17:44:38 -0700
commit9c188978870051f0b42ceb1a3f16320286936976 (patch)
treec0d0bfc4dbb034e7ac6de50f0b700da96e3e017f /test/syscalls
parent6cb0b1881a6dacf2a85d1e904460a2aaae63e562 (diff)
Add rsslim field in /proc/pid/stat.
PiperOrigin-RevId: 240681675 Change-Id: Ib214106e303669fca2d5c744ed5c18e835775161
Diffstat (limited to 'test/syscalls')
-rw-r--r--test/syscalls/linux/proc.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/syscalls/linux/proc.cc b/test/syscalls/linux/proc.cc
index 64d75d9fb..5b52ed71a 100644
--- a/test/syscalls/linux/proc.cc
+++ b/test/syscalls/linux/proc.cc
@@ -895,6 +895,10 @@ TEST_P(ProcPidStatTest, HasBasicFields) {
uint64_t rss;
ASSERT_TRUE(absl::SimpleAtoi(fields[23], &rss));
EXPECT_GT(rss, 0);
+
+ uint64_t rsslim;
+ ASSERT_TRUE(absl::SimpleAtoi(fields[24], &rsslim));
+ EXPECT_GT(rsslim, 0);
}
INSTANTIATE_TEST_CASE_P(SelfAndNumericPid, ProcPidStatTest,