void BackendInterface::TestRollbackAfterEachStep(int argc, const char* argv[],
std::function<bool()> validator) const {
ci::Subprocess backend_helper = CreateSubprocess();
- ASSERT_EQ(backend_helper.RunFunc({[&]() -> int {
+ bool result = backend_helper.RunFunc({[&]() -> int {
TestPkgmgrInstaller pkgmgr_installer;
std::shared_ptr<ci::AppQueryInterface> query_interface =
CreateQueryInterface();
}
return 0;
- }}), true);
+ }});
+ ASSERT_EQ(result, true);
int status = backend_helper.Wait();
ASSERT_NE(WIFEXITED(status), 0);
ASSERT_EQ(WEXITSTATUS(status), 0);