From 9b3e21081e868a8618406aa2b193f06c63e2f7de Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Wed, 19 Nov 2025 22:29:12 +0200 Subject: [PATCH] test-mu-message: use join_path for test-path We were not doing that correctly, missing a "/" between dirname and filename. --- lib/message/test-mu-message.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/message/test-mu-message.cc b/lib/message/test-mu-message.cc index 1e0962e8..1e365f7d 100644 --- a/lib/message/test-mu-message.cc +++ b/lib/message/test-mu-message.cc @@ -1,5 +1,5 @@ /* -** Copyright (C) 2023 Dirk-Jan C. Binnema +** Copyright (C) 2023-2025 Dirk-Jan C. Binnema ** ** This program is free software; you can redistribute it and/or modify it ** under the terms of the GNU General Public License as published by the @@ -17,6 +17,8 @@ ** */ #include "utils/mu-test-utils.hh" +#include "utils/mu-utils-file.hh" + #include "mu-message.hh" #include "mu-mime-object.hh" #include @@ -239,7 +241,7 @@ World! assert_equal(part.mime_type().value(), "audio/ogg"); // file consistso of 4 bytes 4..7 assert_equal(part.to_string().value(), "\004\005\006\007"); - const auto fpath{*cache_path + part.cooked_filename().value()}; + const auto fpath{join_paths(*cache_path, part.cooked_filename().value())}; const auto res = part.to_file(fpath, true); g_assert_cmpuint(*res,==,4);