diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2025-11-19 22:27:32 +0200 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2025-11-19 22:42:59 +0200 |
| commit | 1f85e9bdb7715a81529e8e6b48c4e20a3a6beb4c (patch) | |
| tree | cda8fa78d9797b85dcd1c3c63d63144f4db159a7 | |
| parent | f237a2b9905475fb95da6a04e318d10cab61ddeb (diff) | |
test-utils: use remove_directory
| -rw-r--r-- | lib/utils/mu-test-utils.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/utils/mu-test-utils.cc b/lib/utils/mu-test-utils.cc index cbfad38..8234f32 100644 --- a/lib/utils/mu-test-utils.cc +++ b/lib/utils/mu-test-utils.cc @@ -137,10 +137,9 @@ Mu::TempDir::~TempDir() return; } - if (auto&& res{run_command0({RM_PROGRAM, "-fr", path_})}; !res) { + if (auto&& res{remove_directory(path_)}; !res) { /* LCOV_EXCL_START*/ mu_warning("error removing {}: {}", path_, format_as(res.error())); /* LCOV_EXCL_STOP*/ - } else - mu_debug("removed '{}'", path_); + } } |
