Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobDev authored Feb 27, 2024
1 parent 8a4e19e commit 341f35c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/test-doc-portal.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,12 +687,6 @@ test_add_named (void)
assert_doc_not_exist (id1, basename1, "com.test.App2");
}

static char *
doc_get_real_path (const char *basename)
{
return g_build_filename (outdir, basename, NULL);
}

static void
test_get_real_path (void)
{
Expand Down Expand Up @@ -720,7 +714,8 @@ test_get_real_path (void)

g_assert_no_error (error);
g_variant_get (reply, "(s)", &real_path);
g_assert_cmpstr (real_path, ==, doc_get_real_path(basename));
expected_real_path = g_build_filename (outdir, basename, NULL);
g_assert_cmpstr (real_path, ==, expected_real_path);
}

static void
Expand Down

0 comments on commit 341f35c

Please sign in to comment.