VirtualBox

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


Ignore:
Timestamp:
Nov 10, 2017 1:34:06 PM (7 years ago)
Author:
vboxsync
Message:

Make tstRTDarwinMachKernel build on windows because windbg is easier to use than lldb.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/Makefile.kmk

    r69111 r69643  
    157157        tstFileAppendWin-1 \
    158158        tstRTNtPath-1 \
    159         ntGetTimerResolution
     159        ntGetTimerResolution \
     160        tstRTDarwinMachKernel
     161
    160162PROGRAMS.linux += \
    161163        tstRTProcWait \
  • trunk/src/VBox/Runtime/testcase/tstRTDarwinMachKernel.cpp

    r69111 r69643  
    3434#include <iprt/test.h>
    3535
     36/*********************************************************************************************************************************
     37*   Global Variables                                                                                                             *
     38*********************************************************************************************************************************/
     39extern const char *g_pszTestKernel = "/no-such-file";
    3640
    3741
     
    6670
    6771
    68 int main()
     72int main(int argc, char **argv)
    6973{
    7074    RTTEST hTest;
     
    7478    RTTestBanner(hTest);
    7579
     80    /* Optional kernel path as argument. */
     81    if (argc == 2)
     82        g_pszTestKernel = argv[1];
     83#ifndef RT_OS_DARWIN
     84    else
     85        return RTTestSkipAndDestroy(hTest, "not on darwin");
     86#endif
     87
    7688    dotest();
    7789
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