smartdevicelink / sdl_core

SmartDeviceLink In-Vehicle Software and Sample HMI
BSD 3-Clause "New" or "Revised" License
241 stars 244 forks source link

FAIL occurs in ApplicationHelperTest when unit test is performed with SDL Core 7.0.0 #3621

Closed Yuki-Kanadome-Nexty closed 3 years ago

Yuki-Kanadome-Nexty commented 3 years ago

Bug Report

FAIL occurs in ApplicationHelperTest when unit test is performed with SDL Core 7.0.0

Reproduction Steps
  1. Clone SDL Core 7.0.0

    git clone https://github.com/smartdevicelink/sdl_core -b 7.0.0

  2. Build according to the procedure (https://smartdevicelink.com/en/guides/core/getting-started/install-and-run/) Run CMake below

    cmake -DENABLE_TESTS=ON ../sdl_core

  3. Test execution after build completion

    make test

Expected Behavior

Pass all tests

Observed Behavior

The following FAIL occurs Test log:

The following tests FAILED: 14 --application_manager_test (Failed)

FAIL information in application_manager_test.xml:

ApplicationHelperTest - RecallApplicationData_ExpectAppDataReset unknown file C ++ exception with description "Mock function called more times than expected --returning default value. Function call: CreateDeleteUICommandRequest (0x707070706070706, 1, 4) The mock function has no default action set, and its return type has no default value set. "Thrown in the test body.

OS & Version Information
dboltovskyi commented 3 years ago

Please notice possible fix is described in https://github.com/smartdevicelink/sdl_core/pull/3619#issuecomment-767212365

jacobkeeler commented 3 years ago

closed via #3619