VirtualBox

Ignore:
Timestamp:
Jan 21, 2023 1:01:48 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155357
Message:

Devices/Network: Wrapped the cppunit tests tstDevEEPROM and tstDevPhy to IPRT testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevE1000Phy.cpp

    r98171 r98172  
    5151/* Little helpers ************************************************************/
    5252#ifdef PHY_UNIT_TEST
    53 # include <stdio.h>
    54 # define PhyLog(a)               printf a
    55 #else /* PHY_UNIT_TEST */
     53# ifdef CPP_UNIT
     54#  include <stdio.h>
     55#  define PhyLog(a)               printf a
     56# else
     57#  include <iprt/test.h>
     58#  define PhyLogC99(...)         RTTestIPrintf(RTTESTLVL_ALWAYS, __VA_ARGS__)
     59#  define PhyLog(a)              PhyLogC99 a
     60# endif
     61#else  /* !PHY_UNIT_TEST */
    5662# define PhyLog(a)               Log(a)
    57 #endif /* PHY_UNIT_TEST */
     63#endif /* !PHY_UNIT_TEST */
    5864
    5965#define REG(x) pPhy->au16Regs[x##_IDX]
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