diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-09-07 23:38:05 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-09-07 23:38:05 +0200 |
commit | e6bff45281de1a3e55978812468424086b0edac4 (patch) | |
tree | 9476b4da7b9b237725886ac11844c82496a90400 /psutil/tests/test_linux.py | |
parent | 03a02fe6af19bb875a07a052656544a9b133e10b (diff) | |
download | psutil-e6bff45281de1a3e55978812468424086b0edac4.tar.gz |
fix #1527: Linux process CPU iowait time
Diffstat (limited to 'psutil/tests/test_linux.py')
-rwxr-xr-x | psutil/tests/test_linux.py | 4 |
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): |