Commit 3f72909a authored by Slava Monich's avatar Slava Monich

[test] Allow to specify full path to test_mms_codec

parent 6c87ce70
......@@ -29,7 +29,8 @@ test_file(
GError* error = NULL;
char* path = g_strconcat(DATA_DIR, file, NULL);
GMappedFile* map = g_mapped_file_new(path, FALSE, &error);
const char* fname = g_file_test(path, G_FILE_TEST_EXISTS) ? path : file;
GMappedFile* map = g_mapped_file_new(fname, FALSE, &error);
if (map) {
struct mms_message* msg = g_new0(struct mms_message, 1);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment