[humble] Fix for failing throws_on_invalid_pragma_in_config_file test on Windows (backport #1742)#1748
Conversation
…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 <michael.orlov@apex.ai> (cherry picked from commit 055935d) # Conflicts: # rosbag2_storage_default_plugins/src/rosbag2_storage_default_plugins/sqlite/sqlite_wrapper.cpp
|
Cherry-pick of 055935d has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
|
Pulls: #1748 |
|
Re-run CI since previous CI failures were due to the failures in the CI infrastructure. |
rosbag2/rosbag2_test_common/include/rosbag2_test_common/temporary_directory_fixture.hpp
Lines 37 to 40 in e860f65
with std::filesystem::remove_all(std::filesystem::path(temporary_dir_path_));
RCA (Root Cause Analysis)
The failure was because the database file was not properly closed after throwing an exception from the SqliteWrapper constructor, and std::filesystem::remove_all(..) failed to delete a temporary folder in the test fixture destructor.
Fixes
This is an automatic backport of pull request #1742 done by [Mergify](https://mergify.com).