Test suite: restore cross-platform compatibility by removing unix-specific headers and explicitly casting unsigned ints / unsigned longs
This commit is contained in:
parent
3f670c84b1
commit
564884d27c
5 changed files with 2 additions and 7 deletions
|
@ -23,7 +23,6 @@
|
|||
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "test_suite/FGTestApi/NavDataCache.hxx"
|
||||
#include "test_suite/FGTestApi/TestDataLogger.hxx"
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include <iostream>
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "test_suite/FGTestApi/NavDataCache.hxx"
|
||||
#include "test_suite/FGTestApi/TestDataLogger.hxx"
|
||||
|
@ -71,7 +70,7 @@ void AirportTests::testAirport()
|
|||
{
|
||||
FGAirportRef departureAirport = FGAirport::getByIdent("YSSY");
|
||||
CPPUNIT_ASSERT_EQUAL_MESSAGE("Must have correct id", (std::string)"YSSY", departureAirport->getId());
|
||||
CPPUNIT_ASSERT_EQUAL_MESSAGE("Must have runways", (uint)6, departureAirport->numRunways());
|
||||
CPPUNIT_ASSERT_EQUAL_MESSAGE("Must have runways", (unsigned int) 6, departureAirport->numRunways());
|
||||
CPPUNIT_ASSERT_EQUAL_MESSAGE("Must have runway 16R", true, departureAirport->hasRunwayWithIdent("16R"));
|
||||
|
||||
int length = 3962;
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include <iostream>
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <simgear/math/sg_geodesy.hxx>
|
||||
#include <simgear/math/SGGeod.hxx>
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
#include <simgear/math/sg_random.hxx>
|
||||
#include <simgear/props/props_io.hxx>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
// Set up function for each test.
|
||||
void PidControllerTests::setUp()
|
||||
{
|
||||
|
|
|
@ -147,7 +147,7 @@ void NasalSysTests::testCommands()
|
|||
CPPUNIT_ASSERT(ok);
|
||||
|
||||
errors = nasalSys->getAndClearErrorList();
|
||||
CPPUNIT_ASSERT_EQUAL(0UL, errors.size());
|
||||
CPPUNIT_ASSERT_EQUAL(0UL, (unsigned long) errors.size());
|
||||
|
||||
// should fail, command is removed
|
||||
ok = globals->get_commands()->execute("do-foo", args);
|
||||
|
|
Loading…
Reference in a new issue