Changeset 23 in vbox for trunk/src/VBox/VMM/testcase
- Timestamp:
- Jan 15, 2007 2:08:28 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 17451
- Location:
- trunk/src/VBox/VMM/testcase
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/tstAnimate.cpp
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * VBox Animation Testcase / Tool. 4 4 */ … … 42 42 #include <iprt/file.h> 43 43 #include <iprt/thread.h> 44 45 #include <string.h> 46 #include <ctype.h> 44 #include <iprt/ctype.h> 45 47 46 #include <signal.h> 48 47 -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstAsmStructs.cpp
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * Testcase for checking offsets in the assembly structures shared with C/C++. 4 4 */ -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstCFGM.cpp
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * Testcase for CFGM. 4 4 */ … … 34 34 #include <iprt/runtime.h> 35 35 #include <iprt/stream.h> 36 37 #include <string.h> 36 #include <iprt/string.h> 38 37 39 38 -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstCompiler.cpp
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * Testing how the compiler deals with various things. 4 4 * -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstHelp.c
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * Testcase helpers. 4 4 */ -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstHelp.h
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * VMM testcase - Helper stuff. 4 4 */ -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstMMHyperHeap.cpp
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * MM Hypervisor Heap testcase. 4 4 */ … … 34 34 #include <iprt/assert.h> 35 35 #include <iprt/stream.h> 36 37 #include <string.h> 36 #include <iprt/string.h> 38 37 39 38 -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstMicro.cpp
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * Micro Testcase, profiling special CPU operations. 4 4 */ … … 39 39 #include <iprt/string.h> 40 40 #include <iprt/semaphore.h> 41 42 #include <stdio.h>43 41 44 42 #include "tstMicro.h" … … 368 366 if (!VBOX_SUCCESS(rc)) 369 367 { 370 printf(TESTCASE ": error: failed to destroy vm! rc=%d\n", rc);368 RTPrintf(TESTCASE ": error: failed to destroy vm! rc=%d\n", rc); 371 369 rcRet++; 372 370 } … … 374 372 else 375 373 { 376 printf(TESTCASE ": fatal error: failed to create vm! rc=%d\n", rc);374 RTPrintf(TESTCASE ": fatal error: failed to create vm! rc=%d\n", rc); 377 375 rcRet++; 378 376 } -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstMicro.h
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * Micro Testcase, profiling special CPU operations. 4 4 */ -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstMicroGC.cpp
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * Micro Testcase, profiling special CPU operations - GC Code (hacks). 4 4 */ … … 32 32 #include <VBox/log.h> 33 33 #include <iprt/assert.h> 34 #include < string.h>34 #include <iprt/string.h> 35 35 36 36 -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstProg-1.c
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * VMM - Test program. 4 4 * -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstProg-2.c
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * VMM - Test program no.2. 4 4 * -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstProg-3.c
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * VMM - Test program #3. 4 4 * -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstSSM.cpp
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * Saved State Manager Testcase. 4 4 */ … … 36 36 #include <iprt/string.h> 37 37 #include <iprt/time.h> 38 39 #include <string.h>40 38 41 39 -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstVMM-2.cpp
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * VMM Testcase - no. 2. 4 4 */ … … 34 34 #include <iprt/semaphore.h> 35 35 #include <iprt/thread.h> 36 37 38 #include < stdio.h>39 #include <string.h> 40 #include < ctype.h>36 #include <iprt/string.h> 37 #include <iprt/ctype.h> 38 #include <iprt/stream.h> 39 40 #include <stdio.h> /** @todo get rid of this. */ 41 41 42 42 … … 89 89 if (*psz != '/') 90 90 { 91 printf("%s(%d): error: key path must start with slash.\n", pArgs->pszFilename, iLine);91 RTPrintf("%s(%d): error: key path must start with slash.\n", pArgs->pszFilename, iLine); 92 92 return VERR_GENERAL_FAILURE; 93 93 } … … 95 95 if (!pszEnd) 96 96 { 97 printf("%s(%d): error: missing ']'.\n", pArgs->pszFilename, iLine);97 RTPrintf("%s(%d): error: missing ']'.\n", pArgs->pszFilename, iLine); 98 98 return VERR_GENERAL_FAILURE; 99 99 } … … 119 119 { 120 120 *pszCurEnd = '/'; 121 printf("%s(%d): error: failed to create node '%s', rc=%d.\n", pArgs->pszFilename, iLine, psz, rc);121 RTPrintf("%s(%d): error: failed to create node '%s', rc=%d.\n", pArgs->pszFilename, iLine, psz, rc); 122 122 return rc; 123 123 } … … 146 146 if (!pszNameEnd) 147 147 { 148 printf("%s(%d): error: unbalanced quote.\n", pArgs->pszFilename, iLine);148 RTPrintf("%s(%d): error: unbalanced quote.\n", pArgs->pszFilename, iLine); 149 149 return VERR_GENERAL_FAILURE; 150 150 } … … 163 163 if (!pszNameEnd) 164 164 { 165 printf("%s(%d): error: missing '='.\n", pArgs->pszFilename, iLine);165 RTPrintf("%s(%d): error: missing '='.\n", pArgs->pszFilename, iLine); 166 166 return VERR_GENERAL_FAILURE; 167 167 } … … 172 172 if (!pszNameEnd) 173 173 { 174 printf("%s(%d): error: missing '<'.\n", pArgs->pszFilename, iLine);174 RTPrintf("%s(%d): error: missing '<'.\n", pArgs->pszFilename, iLine); 175 175 return VERR_GENERAL_FAILURE; 176 176 } … … 178 178 if (pszName == pszNameEnd) 179 179 { 180 printf("%s(%d): error: empty value name.\n", pArgs->pszFilename, iLine);180 RTPrintf("%s(%d): error: empty value name.\n", pArgs->pszFilename, iLine); 181 181 return VERR_GENERAL_FAILURE; 182 182 } … … 185 185 if (!psz) 186 186 { 187 printf("%s(%d): error: missing '='.\n", pArgs->pszFilename, iLine);187 RTPrintf("%s(%d): error: missing '='.\n", pArgs->pszFilename, iLine); 188 188 return VERR_GENERAL_FAILURE; 189 189 } … … 204 204 if (!pszValueEnd) 205 205 { 206 printf("%s(%d): error: unbalanced quote in string value.\n", pArgs->pszFilename, iLine);206 RTPrintf("%s(%d): error: unbalanced quote in string value.\n", pArgs->pszFilename, iLine); 207 207 return VERR_GENERAL_FAILURE; 208 208 } … … 217 217 if (VBOX_FAILURE(rc)) 218 218 { 219 printf("%s(%d): error: failed to insert string value named '%s' and with value '%s', rc=%d.\n",220 pArgs->pszFilename, iLine, pszName, psz, rc);219 RTPrintf("%s(%d): error: failed to insert string value named '%s' and with value '%s', rc=%d.\n", 220 pArgs->pszFilename, iLine, pszName, psz, rc); 221 221 return rc; 222 222 } … … 227 227 { 228 228 /* byte string */ 229 printf("%s(%d): error: byte string is not implemented\n", pArgs->pszFilename, iLine);229 RTPrintf("%s(%d): error: byte string is not implemented\n", pArgs->pszFilename, iLine); 230 230 return VERR_GENERAL_FAILURE; 231 231 } … … 255 255 if (isalpha(*psz)) 256 256 { 257 printf("%s(%d): error: unexpected char(s) after number '%.10s'\n", pArgs->pszFilename, iLine, psz);257 RTPrintf("%s(%d): error: unexpected char(s) after number '%.10s'\n", pArgs->pszFilename, iLine, psz); 258 258 return VERR_GENERAL_FAILURE; 259 259 } … … 262 262 if (VBOX_FAILURE(rc)) 263 263 { 264 printf("%s(%d): error: failed to insert integer value named '%s' and with value %#llx, rc=%d.\n",265 pArgs->pszFilename, iLine, pszName, u64, rc);264 RTPrintf("%s(%d): error: failed to insert integer value named '%s' and with value %#llx, rc=%d.\n", 265 pArgs->pszFilename, iLine, pszName, u64, rc); 266 266 return rc; 267 267 } … … 269 269 else 270 270 { 271 printf("%s(%d): error: unknown value format.\n", pArgs->pszFilename, iLine);271 RTPrintf("%s(%d): error: unknown value format.\n", pArgs->pszFilename, iLine); 272 272 return VERR_GENERAL_FAILURE; 273 273 } … … 306 306 if (Args.pszFilename) 307 307 { 308 printf("syntax error: only one config argument!\n");308 RTPrintf("syntax error: only one config argument!\n"); 309 309 return 1; 310 310 } 311 311 if (i + 1 >= argc) 312 312 { 313 printf("syntax error: no configuration filename!\n");313 RTPrintf("syntax error: no configuration filename!\n"); 314 314 return 1; 315 315 } … … 318 318 if (!Args.pFile) 319 319 { 320 printf("%s: Failed to open '%s' for reading!\n", TESTCASE, Args.pszFilename);320 RTPrintf("%s: Failed to open '%s' for reading!\n", TESTCASE, Args.pszFilename); 321 321 return 1; 322 322 } … … 327 327 || (*psz == 'h' && !psz[1])) 328 328 { 329 printf("syntax: %s [options]\n"330 "\n"331 "options (prefixed with a dash or two)\n"332 " config <filename> Load the flat config file.\n"333 " help This help text.\n", argv[0]);329 RTPrintf("syntax: %s [options]\n" 330 "\n" 331 "options (prefixed with a dash or two)\n" 332 " config <filename> Load the flat config file.\n" 333 " help This help text.\n", argv[0]); 334 334 return 1; 335 335 } 336 336 else 337 337 { 338 printf("syntax error: unknown option '%s' in arg %d.\n", psz, i);338 RTPrintf("syntax error: unknown option '%s' in arg %d.\n", psz, i); 339 339 return 1; 340 340 } … … 343 343 else 344 344 { 345 printf("syntax error: Sorry dude, no idea what you're passing to me.\n"346 " arg %d '%s'\n", i, argv[i]);345 RTPrintf("syntax error: Sorry dude, no idea what you're passing to me.\n" 346 " arg %d '%s'\n", i, argv[i]); 347 347 return 1; 348 348 } … … 370 370 if (VBOX_SUCCESS(rc)) 371 371 { 372 printf(TESTCASE ": info: VMR3PowerOn succeeded. rc=%d\n", rc);373 printf(TESTCASE ": info: main thread is taking a nap...\n");372 RTPrintf(TESTCASE ": info: VMR3PowerOn succeeded. rc=%d\n", rc); 373 RTPrintf(TESTCASE ": info: main thread is taking a nap...\n"); 374 374 rc = RTThreadSleep(8*3600*1000); /* 8 hours */ 375 printf(TESTCASE ": info: main thread is woke up... rc=%d\n", rc);375 RTPrintf(TESTCASE ": info: main thread is woke up... rc=%d\n", rc); 376 376 377 377 /* … … 384 384 VMR3ReqFree(pReq); 385 385 if (VBOX_SUCCESS(rc)) 386 printf(TESTCASE ": info: Successfully powered off the VM. rc=%d\n", rc);386 RTPrintf(TESTCASE ": info: Successfully powered off the VM. rc=%d\n", rc); 387 387 else 388 388 { 389 printf(TESTCASE ": error: VMR3PowerOff -> %d\n", rc);389 RTPrintf(TESTCASE ": error: VMR3PowerOff -> %d\n", rc); 390 390 rcRet++; 391 391 } … … 393 393 else 394 394 { 395 printf(TESTCASE ": error: VMR3ReqCall (power off) -> %d\n", rc);395 RTPrintf(TESTCASE ": error: VMR3ReqCall (power off) -> %d\n", rc); 396 396 rcRet++; 397 397 } … … 400 400 else 401 401 { 402 printf(TESTCASE ": error: VMR3ReqCall (power on) -> %d\n", rc);402 RTPrintf(TESTCASE ": error: VMR3ReqCall (power on) -> %d\n", rc); 403 403 rcRet++; 404 404 } … … 411 411 if (!VBOX_SUCCESS(rc)) 412 412 { 413 printf(TESTCASE ": error: failed to destroy vm! rc=%d\n", rc);413 RTPrintf(TESTCASE ": error: failed to destroy vm! rc=%d\n", rc); 414 414 rcRet++; 415 415 } … … 417 417 else 418 418 { 419 printf(TESTCASE ": fatal error: failed to create vm! rc=%d\n", rc);419 RTPrintf(TESTCASE ": fatal error: failed to create vm! rc=%d\n", rc); 420 420 rcRet++; 421 421 } -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstVMM.cpp
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * VMM Testcase. 4 4 */ … … 35 35 36 36 37 #include <stdio.h>38 39 40 37 /******************************************************************************* 41 38 * Defined Constants And Macros * … … 44 41 45 42 VMMR3DECL(int) VMMDoTest(PVM pVM); 43 46 44 47 45 int main(int argc, char **argv) … … 76 74 if (!VBOX_SUCCESS(rc)) 77 75 { 78 printf(TESTCASE ": error: failed to destroy vm! rc=%d\n", rc);76 RTPrintf(TESTCASE ": error: failed to destroy vm! rc=%d\n", rc); 79 77 rcRet++; 80 78 } … … 82 80 else 83 81 { 84 printf(TESTCASE ": fatal error: failed to create vm! rc=%d\n", rc);82 RTPrintf(TESTCASE ": fatal error: failed to create vm! rc=%d\n", rc); 85 83 rcRet++; 86 84 } -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstVMMR0CallHost-1.cpp
-
Property svn:keywords
set to
Id
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * Testcase for the VMMR0JMPBUF operations. 4 4 */ -
Property svn:keywords
set to
-
trunk/src/VBox/VMM/testcase/tstVMREQ.cpp
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * VMM Testcase. 4 4 */ -
Property svn:keywords
changed from
-
trunk/src/VBox/VMM/testcase/tstVMStructGC.cpp
-
Property svn:keywords
set to
Id
r1 r23 1 /* $Id$ */ 1 2 /** @file 3 * tstVMMStructGC - Generate structure member and size checks from the GC perspective. 2 4 * 3 * tstVMMStructGC - Generate structure member and size checks from the GC 4 * perspective. This is built using the VBOXGC template 5 * but linked into a host ring-3 executable, rather hacky. 5 * This is built using the VBOXGC template but linked into a host 6 * ring-3 executable, rather hacky. 6 7 */ 7 8 … … 196 197 #ifdef VBOX_WITH_PDM_LOCK 197 198 GEN_CHECK_OFF(PDM, CritSect); 198 #endif 199 #endif 199 200 GEN_CHECK_OFF(PDM, StatQueuedCritSectLeaves); 200 201 -
Property svn:keywords
set to
-
trunk/src/VBox/VMM/testcase/tstVMStructSize.cpp
-
Property svn:keywords
changed from
Author Date Id Revision
toId
r1 r23 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * VMM - Context switcher macros & definitions 4 4 */ -
Property svn:keywords
changed from
Note:
See TracChangeset
for help on using the changeset viewer.