Skip to content
Snippets Groups Projects
Commit 4df5d391 authored by Simon McVittie's avatar Simon McVittie
Browse files

tests: Assert that ${ORIGIN}, ${FUTURE} are handled correctly

parent 7a4dd237
No related branches found
No related tags found
1 merge request!337pressure-vessel: Remap preloadable modules better
...@@ -418,14 +418,11 @@ test_remap_ld_preload (Fixture *f, ...@@ -418,14 +418,11 @@ test_remap_ld_preload (Fixture *f,
/* We don't know what ${ORIGIN} will expand to, so we have to cut off at /* We don't know what ${ORIGIN} will expand to, so we have to cut off at
* /overlay/libs */ * /overlay/libs */
g_assert_false (flatpak_exports_path_is_visible (exports, "/overlay")); g_assert_false (flatpak_exports_path_is_visible (exports, "/overlay"));
g_assert_true (flatpak_exports_path_is_visible (exports, "/overlay/libs"));
if (!flatpak_exports_path_is_visible (exports, "/overlay/libs"))
g_test_message ("TODO: Export /overlay/libs");
/* We don't know what ${FUTURE} will expand to, so we have to cut off at /* We don't know what ${FUTURE} will expand to, so we have to cut off at
* /future */ * /future */
if (!flatpak_exports_path_is_visible (exports, "/future")) g_assert_true (flatpak_exports_path_is_visible (exports, "/future"));
g_test_message ("TODO: Export /future");
/* We don't export the entire root directory just because it has a /* We don't export the entire root directory just because it has a
* module in it */ * module in it */
...@@ -659,14 +656,11 @@ test_remap_ld_preload_no_runtime (Fixture *f, ...@@ -659,14 +656,11 @@ test_remap_ld_preload_no_runtime (Fixture *f,
/* We don't know what ${ORIGIN} will expand to, so we have to cut off at /* We don't know what ${ORIGIN} will expand to, so we have to cut off at
* /overlay/libs */ * /overlay/libs */
g_assert_false (flatpak_exports_path_is_visible (exports, "/overlay")); g_assert_false (flatpak_exports_path_is_visible (exports, "/overlay"));
g_assert_true (flatpak_exports_path_is_visible (exports, "/overlay/libs"));
if (!flatpak_exports_path_is_visible (exports, "/overlay/libs"))
g_test_message ("TODO: Export /overlay/libs");
/* We don't know what ${FUTURE} will expand to, so we have to cut off at /* We don't know what ${FUTURE} will expand to, so we have to cut off at
* /future */ * /future */
if (!flatpak_exports_path_is_visible (exports, "/future")) g_assert_true (flatpak_exports_path_is_visible (exports, "/future"));
g_test_message ("TODO: Export /future");
/* We don't export the entire root directory just because it has a /* We don't export the entire root directory just because it has a
* module in it */ * module in it */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment