VirtualBox

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


Ignore:
Timestamp:
Mar 4, 2007 8:42:13 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19113
Message:

Ported IPRT to ring-0 OS/2.

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

Legend:

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

    r915 r1190  
    6868        tstLdrObj \
    6969        tstLdrObjR0
     70ifeq ($(filter-out lx pe,$(VBOX_LDR_FMT)), )
     71LIBRARIES += \
     72        tstLdr-4Imp
     73endif
     74       
    7075# tstSems
    7176endif # VBOX_WITH_TESTCASES
     
    159164        $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
    160165
     166tstLdr-4Imp_TEMPLATE = VBOXR0
     167ifeq ($(VBOX_LDR_FMT),lx)
     168 tstLdr-4Imp_SOURCES = tstLdr-4Imp-os2.def
     169else ifeq ($(VBOX_LDR_FMT),pe)
     170 tstLdr-4Imp_SOURCES.win = tstLdr-4Imp-win.def
     171endif
     172
    161173tstLdrObjR0_TEMPLATE = VBOXR0
    162174tstLdrObjR0_INST     = $(INST_TESTCASE)
     
    173185 tstLdrObjR0_LDFLAGS = -Entry:Entrypoint
    174186 tstLdrObjR0_LIBS   += \
    175         $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB)
     187        $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) \
     188        $(TARGET_tstLdr-4Imp)
    176189endif
    177190ifeq ($(VBOX_LDR_FMT),elf)
     
    180193ifeq ($(VBOX_LDR_FMT),lx)
    181194 tstLdrObjR0_LIBS   += \
    182         $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB)
     195        $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) \
     196        $(TARGET_tstLdr-4Imp)
    183197endif
    184198
  • trunk/src/VBox/Runtime/testcase/tstLdr-4.cpp

    r917 r1190  
    158158            if (RT_FAILURE(rc))
    159159            {
    160                 RTPrintf("tstLdr-4: Failed to get symbol \"Test1\" from load #%d: %Rrc\n", i, rc);
     160                RTPrintf("tstLdr-4: Failed to get symbol \"DisasmTest1\" from load #%d: %Rrc\n", i, rc);
    161161                cErrors++;
    162162                break;
  • trunk/src/VBox/Runtime/testcase/tstLdrDisasmTest.cpp

    r919 r1190  
    3434#include <iprt/string.h>
    3535
    36 #if defined(IN_RING0) && !defined(__WIN__) && !defined(__OS2__) /* Too lazy to make import libs. */
     36#if defined(IN_RING0) && !defined(__WIN__) /* Too lazy to make import libs. */
    3737extern "C" DECLIMPORT(int) MyPrintf(const char *pszFormat, ...);
    3838# define MY_PRINTF(a) MyPrintf a
Note: See TracChangeset for help on using the changeset viewer.

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