commit | c09155bb12392fdcd0b3dc63c5a18ef0a2a0d82a | [log] [tgz] |
---|---|---|
author | Lei YU <mine260309@gmail.com> | Fri Oct 11 17:30:48 2019 +0800 |
committer | Lei YU <mine260309@gmail.com> | Tue Oct 29 11:24:04 2019 +0800 |
tree | a75321c9c672dfed28eb42e707e68a500658de79 | |
parent | e8945ea6b76037727a2588bc9366bba56b214bc9 [diff] |
Test: Use unique mocked utils for each test The mocked utils object was shared between the tests because it's a static object. This causes problems on expecting the number of called the mocked functions. Add a freeUtils() in mocked_utils.hpp, and call it in test fixture's destructor, so that each test case will use a different mocked object. Signed-off-by: Lei YU <mine260309@gmail.com> Change-Id: I2622c678012d30b2bd75dc37a2bc3a663f40d86c
phosphor-psu-code-mgmt is a service to provide management for PSU code, including:
meson build/ && ninja -C build
meson -Doe-sdk=enabled -Dtests=enabled build/ ninja -C build/ test # Meson skips running the case due to it thinks it's cross compiling # Manually run the tests for t in `find build/test/ -maxdepth 1 -name "test_*"`; do ./$t || break ; done