QGCMissionImport.ValidateQGCMissonItems failed in unit tests

Hello
just tried to compile dronecore libs.
when i use ‘make run_unit_tests’ the test ‘QGCMissionImport.ValidateQGCMissonItems’ fails

Anyone knows why? is that normal?
Running on ubuntu 16.04

@shairubin sorry for the late response. Is this still an issue? If yes, could you please post the output.

I have the same issue atm, I just followed all the installation instructions on https://dronecore.gitbooks.io/dronecore-guide/content/en/contributing/build.html
For the system wide install. The output is the following:

adrian@adrian-virtual-machine:~/DronecodeSDK$ make run_unit_tests
Build dir: build/default
ninja: no work to do.
build/default/unit_tests_runner
[==========] Running 52 tests from 11 test cases.
[----------] Global test environment set-up.
[----------] 7 tests from GlobalInclude
[ RUN ] GlobalInclude.SteadyTimeIncreasing
[ OK ] GlobalInclude.SteadyTimeIncreasing (0 ms)
[ RUN ] GlobalInclude.ElapsedSinceAboutRight
[ OK ] GlobalInclude.ElapsedSinceAboutRight (0 ms)
[ RUN ] GlobalInclude.SteadyTimeInFuture
[ OK ] GlobalInclude.SteadyTimeInFuture (0 ms)
[ RUN ] GlobalInclude.ElapsedIncreasing
[ OK ] GlobalInclude.ElapsedIncreasing (0 ms)
[ RUN ] GlobalInclude.RadDegDouble
[ OK ] GlobalInclude.RadDegDouble (0 ms)
[ RUN ] GlobalInclude.RadDegFloat
[ OK ] GlobalInclude.RadDegFloat (0 ms)
[ RUN ] GlobalInclude.FloatComparisons
[ OK ] GlobalInclude.FloatComparisons (0 ms)
[----------] 7 tests from GlobalInclude (0 ms total)

[----------] 3 tests from MAVLinkChannels
[ RUN ] MAVLinkChannels.MaxChannelsSanity
[ OK ] MAVLinkChannels.MaxChannelsSanity (0 ms)
[ RUN ] MAVLinkChannels.TryAll
[ OK ] MAVLinkChannels.TryAll (0 ms)
[ RUN ] MAVLinkChannels.ReuseChannels
[ OK ] MAVLinkChannels.ReuseChannels (0 ms)
[----------] 3 tests from MAVLinkChannels (0 ms total)

[----------] 7 tests from TimeoutHandler
[ RUN ] TimeoutHandler.Timeout
[ OK ] TimeoutHandler.Timeout (0 ms)
[ RUN ] TimeoutHandler.TimeoutNoCookie
[ OK ] TimeoutHandler.TimeoutNoCookie (0 ms)
[ RUN ] TimeoutHandler.CallTimeoutInTimeoutCallback
[ OK ] TimeoutHandler.CallTimeoutInTimeoutCallback (0 ms)
[ RUN ] TimeoutHandler.TimeoutRefreshed
[ OK ] TimeoutHandler.TimeoutRefreshed (0 ms)
[ RUN ] TimeoutHandler.TimeoutRemoved
[ OK ] TimeoutHandler.TimeoutRemoved (0 ms)
[ RUN ] TimeoutHandler.TimeoutRemovedDuringCallback
[ OK ] TimeoutHandler.TimeoutRemovedDuringCallback (0 ms)
[ RUN ] TimeoutHandler.NextTimeoutRemovedDuringCallback
[ OK ] TimeoutHandler.NextTimeoutRemovedDuringCallback (0 ms)
[----------] 7 tests from TimeoutHandler (0 ms total)

[----------] 4 tests from CallEveryHandler
[ RUN ] CallEveryHandler.Single
[ OK ] CallEveryHandler.Single (0 ms)
[ RUN ] CallEveryHandler.Multiple
[ OK ] CallEveryHandler.Multiple (0 ms)
[ RUN ] CallEveryHandler.InParallel
[ OK ] CallEveryHandler.InParallel (0 ms)
[ RUN ] CallEveryHandler.Reset
[ OK ] CallEveryHandler.Reset (0 ms)
[----------] 4 tests from CallEveryHandler (1 ms total)

[----------] 7 tests from CurlTest
[ RUN ] CurlTest.Curl_DownloadText_HTTP_Success
[ OK ] CurlTest.Curl_DownloadText_HTTP_Success (880 ms)
[ RUN ] CurlTest.Curl_DownloadText_HTTPS_Success
[ OK ] CurlTest.Curl_DownloadText_HTTPS_Success (166 ms)
[ RUN ] CurlTest.Curl_DownloadText_FileNotFound
[01:25:20|Error] Error while downloading text, curl error code: Couldn’t resolve host name (curl_wrapper.cpp:44)
[ OK ] CurlTest.Curl_DownloadText_FileNotFound (128 ms)
[ RUN ] CurlTest.Curl_DownloadFile_WithoutProgressFeedback_Success
[ OK ] CurlTest.Curl_DownloadFile_WithoutProgressFeedback_Success (296 ms)
[ RUN ] CurlTest.Curl_DownloadFile_WithoutProgressFeedback_FileNotFound
[01:25:20|Error] Error while downloading file, curl error code: Couldn’t resolve host name (curl_wrapper.cpp:218)
[ OK ] CurlTest.Curl_DownloadFile_WithoutProgressFeedback_FileNotFound (106 ms)
[ RUN ] CurlTest.Curl_DownloadFile_ProgressFeedback_Success
[ OK ] CurlTest.Curl_DownloadFile_ProgressFeedback_Success (253 ms)
[ RUN ] CurlTest.Curl_DownloadFile_ProgressFeedback_COULDNT_RESOLVE_HOST
[01:25:20|Error] Error while downloading file, curl error code: Couldn’t resolve host name (curl_wrapper.cpp:218)
[ OK ] CurlTest.Curl_DownloadFile_ProgressFeedback_COULDNT_RESOLVE_HOST (106 ms)
[----------] 7 tests from CurlTest (1938 ms total)

[----------] 3 tests from Any
[ RUN ] Any.StringAndInt
[ OK ] Any.StringAndInt (0 ms)
[ RUN ] Any.Casts
[ OK ] Any.Casts (0 ms)
[ RUN ] Any.Copys
[ OK ] Any.Copys (0 ms)
[----------] 3 tests from Any (1 ms total)

[----------] 3 tests from CliArg
[ RUN ] CliArg.UDPConnections
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Port number to big. (cli_arg.cpp:137)
[01:25:20|Warn ] Non-numeric char found in port (cli_arg.cpp:127)
[ OK ] CliArg.UDPConnections (2 ms)
[ RUN ] CliArg.TCPConnections
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Port number to big. (cli_arg.cpp:137)
[01:25:20|Warn ] Non-numeric char found in port (cli_arg.cpp:127)
[ OK ] CliArg.TCPConnections (2 ms)
[ RUN ] CliArg.SerialConnections
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Invalid serial path (cli_arg.cpp:109)
[01:25:20|Warn ] Path for serial device required. (cli_arg.cpp:76)
[01:25:20|Warn ] COM port number missing (cli_arg.cpp:98)
[01:25:20|Warn ] COM port number missing (cli_arg.cpp:98)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Unknown protocol (cli_arg.cpp:64)
[01:25:20|Warn ] Path for serial device required. (cli_arg.cpp:76)
[01:25:20|Warn ] Invalid serial path (cli_arg.cpp:109)
[01:25:20|Warn ] Invalid serial path (cli_arg.cpp:109)
[01:25:20|Warn ] Non-numeric char found in baudrate (cli_arg.cpp:153)
[ OK ] CliArg.SerialConnections (3 ms)
[----------] 3 tests from CliArg (8 ms total)

[----------] 3 tests from LockedQueue
[ RUN ] LockedQueue.FillAndEmpty
[ OK ] LockedQueue.FillAndEmpty (0 ms)
[ RUN ] LockedQueue.BorrowAndReturn
[ OK ] LockedQueue.BorrowAndReturn (0 ms)
[ RUN ] LockedQueue.ConcurrantAccess
[ OK ] LockedQueue.ConcurrantAccess (13 ms)
[----------] 3 tests from LockedQueue (14 ms total)

[----------] 4 tests from ThreadPool
[ RUN ] ThreadPool.SimpleTask
[ OK ] ThreadPool.SimpleTask (752 ms)
[ RUN ] ThreadPool.SimpleTaskWithArgs
[ OK ] ThreadPool.SimpleTaskWithArgs (252 ms)
[ RUN ] ThreadPool.LambdaWithArgs
[ OK ] ThreadPool.LambdaWithArgs (252 ms)
[ RUN ] ThreadPool.ManyTasks
[ OK ] ThreadPool.ManyTasks (253 ms)
[----------] 4 tests from ThreadPool (1509 ms total)

[----------] 1 test from QGCMissionImport
[ RUN ] QGCMissionImport.ValidateQGCMissonItems
…/…/plugins/mission/mission_import_qgc_test.cpp:91: Failure
Expected equality of these values:
import_result
Which is: 4-byte object <09-00 00-00>
Mission::Result::SUCCESS
Which is: 4-byte object <01-00 00-00>
[ FAILED ] QGCMissionImport.ValidateQGCMissonItems (0 ms)
[----------] 1 test from QGCMissionImport (0 ms total)

[----------] 10 tests from CameraDefinition
[ RUN ] CameraDefinition.E90LoadInfoFile
[ OK ] CameraDefinition.E90LoadInfoFile (12 ms)
[ RUN ] CameraDefinition.E90LoadInfoString
[ OK ] CameraDefinition.E90LoadInfoString (11 ms)
[ RUN ] CameraDefinition.E90CheckDefaultSettings
[ OK ] CameraDefinition.E90CheckDefaultSettings (7 ms)
[ RUN ] CameraDefinition.E90ChangeSettings
[ OK ] CameraDefinition.E90ChangeSettings (5 ms)
[ RUN ] CameraDefinition.E90ShowOptions
[01:25:22|Error] Setting CAM_SHUTTERSPD currently not applicable (camera_definition.cpp:467)
[ OK ] CameraDefinition.E90ShowOptions (8 ms)
[ RUN ] CameraDefinition.E90SettingsToUpdate
[01:25:22|Info ] CAM_COLORENCODE (camera_definition_test.cpp:288)
[01:25:22|Info ] CAM_COLORMODE (camera_definition_test.cpp:288)
[01:25:22|Info ] CAM_EV (camera_definition_test.cpp:288)
[01:25:22|Info ] CAM_EXPMODE (camera_definition_test.cpp:288)
[01:25:22|Info ] CAM_FLICKER (camera_definition_test.cpp:288)
[01:25:22|Info ] CAM_IMAGEDEWARP (camera_definition_test.cpp:288)
[01:25:22|Info ] CAM_ISO (camera_definition_test.cpp:288)
[01:25:22|Info ] CAM_METERING (camera_definition_test.cpp:288)
[01:25:22|Info ] CAM_MODE (camera_definition_test.cpp:288)
[01:25:22|Info ] CAM_PHOTOFMT (camera_definition_test.cpp:288)
[01:25:22|Info ] CAM_PHOTOQUAL (camera_definition_test.cpp:288)
[01:25:22|Info ] CAM_PHOTORATIO (camera_definition_test.cpp:288)
[01:25:22|Info ] CAM_SHUTTERSPD (camera_definition_test.cpp:288)
[01:25:22|Info ] CAM_VIDFMT (camera_definition_test.cpp:288)
[01:25:22|Info ] CAM_VIDRES (camera_definition_test.cpp:288)
[01:25:22|Info ] CAM_WBMODE (camera_definition_test.cpp:288)
[ OK ] CameraDefinition.E90SettingsToUpdate (5 ms)
[ RUN ] CameraDefinition.E90SettingsCauseUpdates
[ OK ] CameraDefinition.E90SettingsCauseUpdates (5 ms)
[ RUN ] CameraDefinition.E90OptionValues
[01:25:22|Error] Unknown parameter to get option: CAM_BLABLA (camera_definition.cpp:421)
[ OK ] CameraDefinition.E90OptionValues (2 ms)
[ RUN ] CameraDefinition.E90SettingHumanReadable
[01:25:22|Warn ] Setting PIPAPO not found. (camera_definition.cpp:569)
[ OK ] CameraDefinition.E90SettingHumanReadable (3 ms)
[ RUN ] CameraDefinition.E90OptionHumanReadable
[01:25:22|Warn ] Option 0.0 not found (camera_definition.cpp:596)
[01:25:22|Warn ] Setting PIPAPO not found. (camera_definition.cpp:584)
[ OK ] CameraDefinition.E90OptionHumanReadable (3 ms)
[----------] 10 tests from CameraDefinition (62 ms total)

[----------] Global test environment tear-down
[==========] 52 tests from 11 test cases ran. (3535 ms total)
[ PASSED ] 51 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] QGCMissionImport.ValidateQGCMissonItems

1 FAILED TEST
Makefile:137: recipe for target ‘run_unit_tests’ failed
make: *** [run_unit_tests] Error 1

Any idea?

Thanks for asking.

Can you try with latest develop branch ? This should be fixed with https://github.com/Dronecode/DronecodeSDK/pull/488.