Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[humble] Fix for failing throws_on_invalid_pragma_in_config_file test…
… on Windows (backport #1742) (#1748) * Fix for failing throws_on_invalid_pragma_in_config_file on Windows (#1742) - The failure was because database file was not properly closed after throwing exception from the SqliteWrapper constructor and std::filesystem::remove_all(..) failed to delete temporary folder in the test fixture destructor. - Added reset for prepared sql statement before throwing exception. - Try to close database in constructor if we got exception after opening it since destructor will not be called in this case. Signed-off-by: Michael Orlov <[email protected]> (cherry picked from commit 055935d) # Conflicts: # rosbag2_storage_default_plugins/src/rosbag2_storage_default_plugins/sqlite/sqlite_wrapper.cpp * Address merge conflicts Signed-off-by: Michael Orlov <[email protected]> --------- Signed-off-by: Michael Orlov <[email protected]> Co-authored-by: Michael Orlov <[email protected]>
- Loading branch information