1Testcase 06 2----------- 3 4It's been found that sometimes onlining and offlining CPUs confuse some 5of the various system tools. We found it caused top to 6crash. This test case seeks to exercise this known error cases and 7verify that they behave correctly now. 8 9Algorithm - Top 10=============== 11Given a CPU to test that exists 12 13Make sure the specified cpu is online 14 15Loop until done: 16 Start up top and give it a little time to run 17 18 Offline the specified CPU 19 20 Wait a little time for top to notice the CPU is gone 21 22 Now check that top hasn't crashed by verifying its PID is still 23 being reported by ps. 24 25When exiting: 26 Kill the top process 27 Restore all CPUs to their initial state 28 29 30