VirtualBox

Changeset 3672 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Jul 17, 2007 12:39:30 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22950
Message:

RT_OS_* and RT_ARCH_* for Runtime/ and Support/

Location:
trunk/src/VBox/Runtime/testcase
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstInlineAsm.cpp

    r2981 r3672  
    6262
    6363
    64 #if !defined(PIC) || !defined(__X86__)
     64#if !defined(PIC) || !defined(RT_ARCH_X86)
    6565const char *getCacheAss(unsigned u)
    6666{
     
    543543
    544544
    545 #ifdef __AMD64__
     545#ifdef RT_ARCH_AMD64
    546546static void tstASMAtomicXchgU128(void)
    547547{
     
    867867     * Execute the tests.
    868868     */
    869 #if !defined(PIC) || !defined(__X86__)
     869#if !defined(PIC) || !defined(RT_ARCH_X86)
    870870    tstASMCpuId();
    871871#endif
     
    874874    tstASMAtomicXchgU32();
    875875    tstASMAtomicXchgU64();
    876 #ifdef __AMD64__
     876#ifdef RT_ARCH_AMD64
    877877    tstASMAtomicXchgU128();
    878878#endif
  • trunk/src/VBox/Runtime/testcase/tstIoCtl.cpp

    r2981 r3672  
    4343#include <iprt/uuid.h>
    4444
    45 #ifdef __L4ENV__
     45#ifdef RT_OS_L4
    4646extern char **__environ;
    4747char *myenv[] = { "+all.e", NULL };
     
    5050int main()
    5151{
    52 #ifdef __L4ENV__
     52#ifdef RT_OS_L4
    5353    __environ = myenv;
    5454#endif
  • trunk/src/VBox/Runtime/testcase/tstLdrDisasmTest.cpp

    r2981 r3672  
    3434#include <iprt/string.h>
    3535
    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. */
    3737extern "C" DECLIMPORT(int) MyPrintf(const char *pszFormat, ...);
    3838# define MY_PRINTF(a) MyPrintf a
  • trunk/src/VBox/Runtime/testcase/tstPath.cpp

    r3365 r3672  
    7272        "relative_base/dir\\",          "\\from_root",
    7373        "relative_base/dir/",           "relative_also",
    74 #if defined (__OS2__) || defined (__WIN__)
     74#if defined (RT_OS_OS2) || defined (RT_OS_WINDOWS)
    7575        NULL,                           "C:\\",
    7676        "C:\\",                         "..",
  • trunk/src/VBox/Runtime/testcase/tstTime-2.cpp

    r2981 r3672  
    2323*   Header Files                                                               *
    2424*******************************************************************************/
    25 #ifdef __WIN__
     25#ifdef RT_OS_WINDOWS
    2626# include <Windows.h>
    2727
    28 #elif defined __L4__
     28#elif defined RT_OS_L4
    2929
    3030#else /* posix */
     
    4040DECLINLINE(uint64_t) OSNanoTS(void)
    4141{
    42 #ifdef __WIN__
     42#ifdef RT_OS_WINDOWS
    4343    uint64_t u64; /* manual say larger integer, should be safe to assume it's the same. */
    4444    GetSystemTimeAsFileTime((LPFILETIME)&u64);
    4545    return u64 * 100;
    4646
    47 #elif defined __L4__
     47#elif defined RT_OS_L4
    4848    /** @todo fix a different timesource on l4. */
    4949    return RTTimeNanoTS();
     
    9696                 u64OSElapsedTS, u64RTElapsedTS, u64OSElapsedTS - u64RTElapsedTS);
    9797
    98 #if defined __WIN__ || defined __LINUX__
     98#if defined RT_OS_WINDOWS || defined RT_OS_LINUX
    9999    RTPrintf("tstTime-2: RTTime1nsSteps -> %u out of %u calls\n", RTTime1nsSteps(), NUMBER_OF_CALLS);
    100100#endif
  • trunk/src/VBox/Runtime/testcase/tstTime-3.cpp

    r2981 r3672  
    2323*   Header Files                                                               *
    2424*******************************************************************************/
    25 #ifdef __WIN__
     25#ifdef RT_OS_WINDOWS
    2626# include <Windows.h>
    2727
    28 #elif defined __L4__
     28#elif defined RT_OS_L4
    2929
    3030#else /* posix */
     
    4242DECLINLINE(uint64_t) OSNanoTS(void)
    4343{
    44 #ifdef __WIN__
     44#ifdef RT_OS_WINDOWS
    4545    uint64_t u64; /* manual say larger integer, should be safe to assume it's the same. */
    4646    GetSystemTimeAsFileTime((LPFILETIME)&u64);
    4747    return u64 * 100;
    4848
    49 #elif defined __L4__
     49#elif defined RT_OS_L4
    5050    /** @todo fix a different timesource on l4. */
    5151    return RTTimeNanoTS();
  • trunk/src/VBox/Runtime/testcase/tstTime.cpp

    r2981 r3672  
    2323*   Header Files                                                               *
    2424*******************************************************************************/
    25 #ifdef __WIN__
     25#ifdef RT_OS_WINDOWS
    2626# include <Windows.h>
    2727
    28 #elif defined __L4__
     28#elif defined RT_OS_L4
    2929
    3030#else /* posix */
     
    4040DECLINLINE(uint64_t) OSNanoTS(void)
    4141{
    42 #ifdef __WIN__
     42#ifdef RT_OS_WINDOWS
    4343    uint64_t u64; /* manual say larger integer, should be safe to assume it's the same. */
    4444    GetSystemTimeAsFileTime((LPFILETIME)&u64);
    4545    return u64 * 100;
    4646
    47 #elif defined __L4__
     47#elif defined RT_OS_L4
    4848    /** @todo fix a different timesource on l4. */
    4949    return RTTimeNanoTS();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette