• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Testcase 02
2-----------
3
4This test checks that a process migrates when the CPU it is running on
5is offlined.
6
7
8Algorithm
9=========
10Given a CPU to test that exists
11
12Make sure the cpu is online
13
14Start a process that just uses processor cycles
15
16Loop until done:
17  Move the process to the CPU we will be offlining
18
19  Offline the CPU
20
21  Determine which CPU the process migrated to
22
23  Verify that it is still running
24
25  Verify that it is not running on the original CPU
26
27  Turn the CPU back online
28
29
30
31When exiting:
32  Kill the spin loop process
33
34