Changeset 10426 in vbox for trunk/src/VBox/Runtime/testcase/tstMp-1.cpp
- Timestamp:
- Jul 9, 2008 2:09:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstMp-1.cpp
r10419 r10426 82 82 for (int iCpu = 0; iCpu < RTCPUSET_MAX_CPUS; iCpu++) 83 83 { 84 RTCPUID idCpu = RTMpCpuIdFromSetIndex(iCpu); 84 85 if (RTCpuSetIsMemberByIndex(&Set, iCpu)) 85 86 { 86 RTPrintf("tstMp-1: %2d - id %d \n", iCpu, RTMpCpuIdFromSetIndex(iCpu));87 if (!RTMpIsCpuPossible( RTMpCpuIdFromSetIndex(iCpu)))87 RTPrintf("tstMp-1: %2d - id %d: %u/%u MHz\n", iCpu, idCpu, RTMpGetCurFrequency(idCpu), RTMpGetMaxFrequency(idCpu)); 88 if (!RTMpIsCpuPossible(idCpu)) 88 89 { 89 90 RTPrintf("tstMp-1: FAILURE: Cpu with index %d is returned by RTCpuSet but not RTMpIsCpuPossible!\n", iCpu); … … 91 92 } 92 93 } 93 else if (RTMpIsCpuPossible( RTMpCpuIdFromSetIndex(iCpu)))94 else if (RTMpIsCpuPossible(idCpu)) 94 95 { 95 96 RTPrintf("tstMp-1: FAILURE: Cpu with index %d is returned by RTMpIsCpuPossible but not RTCpuSet!\n", iCpu); 97 g_cErrors++; 98 } 99 else if (RTMpGetCurFrequency(idCpu) != 0) 100 { 101 RTPrintf("tstMp-1: FAILURE: RTMpGetCurFrequency(%d[idx=%d]) didn't return 0 as it should\n", (int)idCpu, iCpu); 102 g_cErrors++; 103 } 104 else if (RTMpGetMaxFrequency(idCpu) != 0) 105 { 106 RTPrintf("tstMp-1: FAILURE: RTMpGetCurFrequency(%d[idx=%d]) didn't return 0 as it should\n", (int)idCpu, iCpu); 96 107 g_cErrors++; 97 108 } … … 147 158 if (RTCpuSetIsMemberByIndex(&SetOnline, iCpu)) 148 159 { 149 RTPrintf("tstMp-1: %2d - id %d\n", iCpu, RTMpCpuIdFromSetIndex(iCpu)); 160 RTCPUID idCpu = RTMpCpuIdFromSetIndex(iCpu); 161 RTPrintf("tstMp-1: %2d - id %d: %u/%u MHz\n", iCpu, idCpu, RTMpGetCurFrequency(idCpu), RTMpGetMaxFrequency(idCpu)); 150 162 if (!RTCpuSetIsMemberByIndex(&Set, iCpu)) 151 163 {
Note:
See TracChangeset
for help on using the changeset viewer.