Changeset 29:5ab375f73489 in xplra for test


Ignore:
Timestamp:
02/09/13 08:21:45 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 3 'hg:/home/ivaradi/xplane/hg/xplra' '/'>, 'public')
Message:

Implemented the rest of the multi-dataref API and the multi-dataref getting test program in C

Location:
test
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile.am

    r23 r29  
    66endif
    77
    8 noinst_PROGRAMS=ctest basictest basicctest multigettest multisettest
     8noinst_PROGRAMS=ctest basictest basicctest multigettest multigetctest multisettest
    99
    1010ctest_SOURCES=ctest.c
     
    2222multigettest_SOURCES=multigettest.cc
    2323
     24multigetctest_SOURCES=multigetctest.c
     25if TARGET_API_WIN32
     26multigetctest_LDFLAGS=-lstdc++
     27endif
     28
    2429multisettest_SOURCES=multisettest.cc
  • test/basicctest.c

    r25 r29  
    340340
    341341    retval = 1;
     342
    342343cleanup:
    343344    if (connectionID>=0) xplra_disconnect(connectionID);
  • test/multigettest.cc

    r26 r29  
    146146        const int32_t& pitot = getter.getIntRef(pitotID);
    147147        const float& parking = getter.getFloatRef(parkingID);
    148         const int32_t& gearControl = getter.getInt(gearControlID);
     148        const int32_t& gearControl = getter.getIntRef(gearControlID);
    149149        const float& noseGear = getter.getFloatArray(noseGearID)[0];
    150150        const float& altimeter = getter.getFloatRef(altimeterID);
Note: See TracChangeset for help on using the changeset viewer.