summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2025-11-19 22:29:12 +0200
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2025-11-19 22:42:59 +0200
commit43b6e051944ea06a107f7ba972820b2d45cb11a2 (patch)
treeab76822ccc96ebcbf22d8f842e2b5cee17b6bb3d
parent6bba0458d130741243f1cf11f8f1c251d8198e92 (diff)
test-mu-message: use join_path for test-path
We were not doing that correctly, missing a "/" between dirname and filename.
-rw-r--r--lib/message/test-mu-message.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/message/test-mu-message.cc b/lib/message/test-mu-message.cc
index 1e0962e..1e365f7 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 <djcb@djcbsoftware.nl>
+** Copyright (C) 2023-2025 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
**
** 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 <glib.h>
@@ -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);