summaryrefslogtreecommitdiff
path: root/psutil/tests/test_linux.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2019-09-07 23:38:05 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2019-09-07 23:38:05 +0200
commite6bff45281de1a3e55978812468424086b0edac4 (patch)
tree9476b4da7b9b237725886ac11844c82496a90400 /psutil/tests/test_linux.py
parent03a02fe6af19bb875a07a052656544a9b133e10b (diff)
downloadpsutil-e6bff45281de1a3e55978812468424086b0edac4.tar.gz
fix #1527: Linux process CPU iowait time
Diffstat (limited to 'psutil/tests/test_linux.py')
-rwxr-xr-xpsutil/tests/test_linux.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py
index bb74ab31..ad3ed936 100755
--- a/psutil/tests/test_linux.py
+++ b/psutil/tests/test_linux.py
@@ -1993,6 +1993,9 @@ class TestProcess(unittest.TestCase):
"0", # cnswap
"0", # exit_signal
"6", # processor
+ "0", # rt priority
+ "0", # policy
+ "7", # delayacct_blkio_ticks
]
content = " ".join(args).encode()
with mock_open_content('/proc/%s/stat' % os.getpid(), content):
@@ -2007,6 +2010,7 @@ class TestProcess(unittest.TestCase):
self.assertEqual(cpu.system, 3 / CLOCK_TICKS)
self.assertEqual(cpu.children_user, 4 / CLOCK_TICKS)
self.assertEqual(cpu.children_system, 5 / CLOCK_TICKS)
+ self.assertEqual(cpu.iowait, 7 / CLOCK_TICKS)
self.assertEqual(p.cpu_num(), 6)
def test_status_file_parsing(self):