Skip to content

Commit

Permalink
[test] Allow to specify full path to test_mms_codec
Browse files Browse the repository at this point in the history
  • Loading branch information
monich committed Mar 12, 2016
1 parent 6c87ce7 commit 3f72909
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mms-lib/test/test_mms_codec/test_mms_codec.c
Expand Up @@ -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);
g_free(path);
if (map) {
struct mms_message* msg = g_new0(struct mms_message, 1);
Expand Down

0 comments on commit 3f72909

Please sign in to comment.