Changeset 3672 in vbox for trunk/src/VBox/Runtime/testcase
- Timestamp:
- Jul 17, 2007 12:39:30 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 22950
- Location:
- trunk/src/VBox/Runtime/testcase
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstInlineAsm.cpp
r2981 r3672 62 62 63 63 64 #if !defined(PIC) || !defined( __X86__)64 #if !defined(PIC) || !defined(RT_ARCH_X86) 65 65 const char *getCacheAss(unsigned u) 66 66 { … … 543 543 544 544 545 #ifdef __AMD64__545 #ifdef RT_ARCH_AMD64 546 546 static void tstASMAtomicXchgU128(void) 547 547 { … … 867 867 * Execute the tests. 868 868 */ 869 #if !defined(PIC) || !defined( __X86__)869 #if !defined(PIC) || !defined(RT_ARCH_X86) 870 870 tstASMCpuId(); 871 871 #endif … … 874 874 tstASMAtomicXchgU32(); 875 875 tstASMAtomicXchgU64(); 876 #ifdef __AMD64__876 #ifdef RT_ARCH_AMD64 877 877 tstASMAtomicXchgU128(); 878 878 #endif -
trunk/src/VBox/Runtime/testcase/tstIoCtl.cpp
r2981 r3672 43 43 #include <iprt/uuid.h> 44 44 45 #ifdef __L4ENV__45 #ifdef RT_OS_L4 46 46 extern char **__environ; 47 47 char *myenv[] = { "+all.e", NULL }; … … 50 50 int main() 51 51 { 52 #ifdef __L4ENV__52 #ifdef RT_OS_L4 53 53 __environ = myenv; 54 54 #endif -
trunk/src/VBox/Runtime/testcase/tstLdrDisasmTest.cpp
r2981 r3672 34 34 #include <iprt/string.h> 35 35 36 #if defined(IN_RING0) && !defined( __WIN__) /* Too lazy to make import libs. */36 #if defined(IN_RING0) && !defined(RT_OS_WINDOWS) /* Too lazy to make import libs. */ 37 37 extern "C" DECLIMPORT(int) MyPrintf(const char *pszFormat, ...); 38 38 # define MY_PRINTF(a) MyPrintf a -
trunk/src/VBox/Runtime/testcase/tstPath.cpp
r3365 r3672 72 72 "relative_base/dir\\", "\\from_root", 73 73 "relative_base/dir/", "relative_also", 74 #if defined ( __OS2__) || defined (__WIN__)74 #if defined (RT_OS_OS2) || defined (RT_OS_WINDOWS) 75 75 NULL, "C:\\", 76 76 "C:\\", "..", -
trunk/src/VBox/Runtime/testcase/tstTime-2.cpp
r2981 r3672 23 23 * Header Files * 24 24 *******************************************************************************/ 25 #ifdef __WIN__25 #ifdef RT_OS_WINDOWS 26 26 # include <Windows.h> 27 27 28 #elif defined __L4__28 #elif defined RT_OS_L4 29 29 30 30 #else /* posix */ … … 40 40 DECLINLINE(uint64_t) OSNanoTS(void) 41 41 { 42 #ifdef __WIN__42 #ifdef RT_OS_WINDOWS 43 43 uint64_t u64; /* manual say larger integer, should be safe to assume it's the same. */ 44 44 GetSystemTimeAsFileTime((LPFILETIME)&u64); 45 45 return u64 * 100; 46 46 47 #elif defined __L4__47 #elif defined RT_OS_L4 48 48 /** @todo fix a different timesource on l4. */ 49 49 return RTTimeNanoTS(); … … 96 96 u64OSElapsedTS, u64RTElapsedTS, u64OSElapsedTS - u64RTElapsedTS); 97 97 98 #if defined __WIN__ || defined __LINUX__98 #if defined RT_OS_WINDOWS || defined RT_OS_LINUX 99 99 RTPrintf("tstTime-2: RTTime1nsSteps -> %u out of %u calls\n", RTTime1nsSteps(), NUMBER_OF_CALLS); 100 100 #endif -
trunk/src/VBox/Runtime/testcase/tstTime-3.cpp
r2981 r3672 23 23 * Header Files * 24 24 *******************************************************************************/ 25 #ifdef __WIN__25 #ifdef RT_OS_WINDOWS 26 26 # include <Windows.h> 27 27 28 #elif defined __L4__28 #elif defined RT_OS_L4 29 29 30 30 #else /* posix */ … … 42 42 DECLINLINE(uint64_t) OSNanoTS(void) 43 43 { 44 #ifdef __WIN__44 #ifdef RT_OS_WINDOWS 45 45 uint64_t u64; /* manual say larger integer, should be safe to assume it's the same. */ 46 46 GetSystemTimeAsFileTime((LPFILETIME)&u64); 47 47 return u64 * 100; 48 48 49 #elif defined __L4__49 #elif defined RT_OS_L4 50 50 /** @todo fix a different timesource on l4. */ 51 51 return RTTimeNanoTS(); -
trunk/src/VBox/Runtime/testcase/tstTime.cpp
r2981 r3672 23 23 * Header Files * 24 24 *******************************************************************************/ 25 #ifdef __WIN__25 #ifdef RT_OS_WINDOWS 26 26 # include <Windows.h> 27 27 28 #elif defined __L4__28 #elif defined RT_OS_L4 29 29 30 30 #else /* posix */ … … 40 40 DECLINLINE(uint64_t) OSNanoTS(void) 41 41 { 42 #ifdef __WIN__42 #ifdef RT_OS_WINDOWS 43 43 uint64_t u64; /* manual say larger integer, should be safe to assume it's the same. */ 44 44 GetSystemTimeAsFileTime((LPFILETIME)&u64); 45 45 return u64 * 100; 46 46 47 #elif defined __L4__47 #elif defined RT_OS_L4 48 48 /** @todo fix a different timesource on l4. */ 49 49 return RTTimeNanoTS();
Note:
See TracChangeset
for help on using the changeset viewer.