- Timestamp:
- Jan 20, 2023 8:48:14 PM (2 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Makefile.kmk
r98169 r98171 1488 1488 tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE 1489 1489 tstDevEEPROM_SOURCES = \ 1490 Network/testcase/tstDevEEPROM.cpp 1490 Network/testcase/tstDevEEPROM.cpp \ 1491 Network/DevEEPROM.cpp 1491 1492 tstDevEEPROM_LIBS = \ 1492 1493 $(TARGET_VBoxDD) 1494 1493 1495 PROGRAMS += tstDevPhy 1494 1496 tstDevPhy_TEMPLATE = VBOXCPPUNITEXE -
trunk/src/VBox/Devices/Network/DevE1000Phy.cpp
r98103 r98171 51 51 /* Little helpers ************************************************************/ 52 52 #ifdef PHY_UNIT_TEST 53 # define SSMR3PutMem(a,b,c)54 # define SSMR3GetMem(a,b,c)55 53 # include <stdio.h> 56 54 # define PhyLog(a) printf a … … 64 62 /* Internals */ 65 63 namespace Phy { 66 #if defined(LOG_ENABLED) && !defined(PHY_UNIT_TEST)64 #if defined(LOG_ENABLED) || defined(PHY_UNIT_TEST) 67 65 /** Retrieves state name by id */ 68 66 static const char * getStateName(uint16_t u16State); … … 380 378 PhyLog(("PHY#%d PSTATUS=%04x PSSTAT=%04x\n", pPhy->iInstance, REG(PSTATUS), REG(PSSTAT))); 381 379 380 #ifndef PHY_UNIT_TEST 382 381 e1kPhyLinkResetCallback(pDevIns); 382 #else 383 RT_NOREF(pDevIns); 384 #endif 383 385 } 384 386 … … 514 516 } 515 517 516 #if defined(LOG_ENABLED) && !defined(PHY_UNIT_TEST)518 #if defined(LOG_ENABLED) || defined(PHY_UNIT_TEST) 517 519 static const char * Phy::getStateName(uint16_t u16State) 518 520 { -
trunk/src/VBox/Devices/Network/testcase/tstDevEEPROM.cpp
r98103 r98171 29 29 #include <cppunit/extensions/HelperMacros.h> 30 30 31 #include <VBox/vmm/pdmdev.h> 31 32 #include "../DevEEPROM.h" 32 33 … … 520 521 521 522 // Create text test runner and run all tests. 522 int main( int argc, char **argv)523 int main() 523 524 { 524 525 CppUnit::TextUi::TestRunner runner; -
trunk/src/VBox/Devices/Network/testcase/tstDevPhy.cpp
r98103 r98171 166 166 167 167 // Create text test runner and run all tests. 168 int main( int argc, char **argv)168 int main() 169 169 { 170 170 CppUnit::TextUi::TestRunner runner;
Note:
See TracChangeset
for help on using the changeset viewer.