VirtualBox

Changeset 69643 in vbox for trunk


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
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp

    r69111 r69643  
    4747#else
    4848# include <stdio.h> /* for printf */
     49#endif
     50
     51#ifndef IN_RING0 /* A linking tweak for the testcase: */
     52# include <iprt/cdefs.h>
     53# undef  RTR0DECL
     54# define RTR0DECL(type) DECLHIDDEN(type) RTCALL
    4955#endif
    5056
     
    117123
    118124#define VERR_LDR_UNEXPECTED     (-641)
     125
     126#ifndef RT_OS_DARWIN
     127# define MAC_OS_X_VERSION_MIN_REQUIRED 1050
     128#endif
    119129
    120130
     
    10861096     */
    10871097    static bool s_fFirstCall = true;
     1098#ifdef IN_RING3
     1099    extern const char *g_pszTestKernel;
     1100#endif
    10881101    struct
    10891102    {
     
    10921105    } aKernels[] =
    10931106    {
     1107#ifdef IN_RING3
     1108        { g_pszTestKernel, VERR_WRONG_ORDER },
     1109#endif
    10941110        { "/System/Library/Kernels/kernel", VERR_WRONG_ORDER },
    10951111        { "/System/Library/Kernels/kernel.development", VERR_WRONG_ORDER },
  • 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