VirtualBox

Changeset 98171 in vbox for trunk


Ignore:
Timestamp:
Jan 20, 2023 8:48:14 PM (2 years ago)
Author:
vboxsync
Message:

Devices/E1000: Made the two testcases build again. bugref:10348

Location:
trunk/src/VBox/Devices
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Makefile.kmk

    r98169 r98171  
    14881488   tstDevEEPROM_TEMPLATE    = VBOXCPPUNITEXE
    14891489   tstDevEEPROM_SOURCES     = \
    1490         Network/testcase/tstDevEEPROM.cpp
     1490        Network/testcase/tstDevEEPROM.cpp \
     1491        Network/DevEEPROM.cpp
    14911492   tstDevEEPROM_LIBS        = \
    14921493        $(TARGET_VBoxDD)
     1494
    14931495   PROGRAMS += tstDevPhy
    14941496   tstDevPhy_TEMPLATE    = VBOXCPPUNITEXE
  • trunk/src/VBox/Devices/Network/DevE1000Phy.cpp

    r98103 r98171  
    5151/* Little helpers ************************************************************/
    5252#ifdef PHY_UNIT_TEST
    53 # define SSMR3PutMem(a,b,c)
    54 # define SSMR3GetMem(a,b,c)
    5553# include <stdio.h>
    5654# define PhyLog(a)               printf a
     
    6462/* Internals */
    6563namespace Phy {
    66 #if defined(LOG_ENABLED) && !defined(PHY_UNIT_TEST)
     64#if defined(LOG_ENABLED) || defined(PHY_UNIT_TEST)
    6765    /** Retrieves state name by id */
    6866    static const char * getStateName(uint16_t u16State);
     
    380378    PhyLog(("PHY#%d PSTATUS=%04x PSSTAT=%04x\n", pPhy->iInstance, REG(PSTATUS), REG(PSSTAT)));
    381379
     380#ifndef PHY_UNIT_TEST
    382381    e1kPhyLinkResetCallback(pDevIns);
     382#else
     383    RT_NOREF(pDevIns);
     384#endif
    383385}
    384386
     
    514516}
    515517
    516 #if defined(LOG_ENABLED) && !defined(PHY_UNIT_TEST)
     518#if defined(LOG_ENABLED) || defined(PHY_UNIT_TEST)
    517519static const char * Phy::getStateName(uint16_t u16State)
    518520{
  • trunk/src/VBox/Devices/Network/testcase/tstDevEEPROM.cpp

    r98103 r98171  
    2929#include <cppunit/extensions/HelperMacros.h>
    3030
     31#include <VBox/vmm/pdmdev.h>
    3132#include "../DevEEPROM.h"
    3233
     
    520521
    521522// Create text test runner and run all tests.
    522 int main( int argc, char **argv)
     523int main()
    523524{
    524525    CppUnit::TextUi::TestRunner runner;
  • trunk/src/VBox/Devices/Network/testcase/tstDevPhy.cpp

    r98103 r98171  
    166166
    167167// Create text test runner and run all tests.
    168 int main( int argc, char **argv)
     168int main()
    169169{
    170170    CppUnit::TextUi::TestRunner runner;
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