diff options
author | Xan Lopez <xan@igalia.com> | 2012-05-08 19:20:33 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-05-08 19:20:33 +0800 |
commit | 616fe15f7781921ec5d71fdcda76476137058a0f (patch) | |
tree | 5adc6788f018ae05a19f38ddf51d226e4f315795 /tests | |
parent | 6800fb02791cf40681e91a5824e6fde586e5604f (diff) | |
download | gsoc2013-epiphany-616fe15f7781921ec5d71fdcda76476137058a0f.tar gsoc2013-epiphany-616fe15f7781921ec5d71fdcda76476137058a0f.tar.gz gsoc2013-epiphany-616fe15f7781921ec5d71fdcda76476137058a0f.tar.bz2 gsoc2013-epiphany-616fe15f7781921ec5d71fdcda76476137058a0f.tar.lz gsoc2013-epiphany-616fe15f7781921ec5d71fdcda76476137058a0f.tar.xz gsoc2013-epiphany-616fe15f7781921ec5d71fdcda76476137058a0f.tar.zst gsoc2013-epiphany-616fe15f7781921ec5d71fdcda76476137058a0f.zip |
Ensure private profile dirs actually do exist.
Perhaps PRIVATE_PROFILE should implicitly add ENSURE_EXISTS, seems
logical. Do this for new.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ephy-download-test.c | 4 | ||||
-rw-r--r-- | tests/ephy-embed-single-test.c | 4 | ||||
-rw-r--r-- | tests/ephy-web-view-test.c | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/tests/ephy-download-test.c b/tests/ephy-download-test.c index 3fd208af5..dbcd0057d 100644 --- a/tests/ephy-download-test.c +++ b/tests/ephy-download-test.c @@ -166,7 +166,9 @@ main (int argc, char *argv[]) ephy_embed_prefs_init (); _ephy_shell_create_instance (EPHY_EMBED_SHELL_MODE_PRIVATE); - if (!ephy_file_helpers_init (NULL, EPHY_FILE_HELPERS_PRIVATE_PROFILE, NULL)) { + if (!ephy_file_helpers_init (NULL, + EPHY_FILE_HELPERS_PRIVATE_PROFILE | EPHY_FILE_HELPERS_ENSURE_EXISTS, + NULL)) { g_debug ("Something wrong happened with ephy_file_helpers_init()"); return -1; } diff --git a/tests/ephy-embed-single-test.c b/tests/ephy-embed-single-test.c index f5e4b8e50..4441c8dc5 100644 --- a/tests/ephy-embed-single-test.c +++ b/tests/ephy-embed-single-test.c @@ -87,7 +87,9 @@ main (int argc, char *argv[]) ephy_embed_prefs_init (); _ephy_shell_create_instance (EPHY_EMBED_SHELL_MODE_PRIVATE); - if (!ephy_file_helpers_init (NULL, EPHY_FILE_HELPERS_PRIVATE_PROFILE, NULL)) { + if (!ephy_file_helpers_init (NULL, + EPHY_FILE_HELPERS_ENSURE_EXISTS | EPHY_FILE_HELPERS_PRIVATE_PROFILE, + NULL)) { g_debug ("Something wrong happened with ephy_file_helpers_init()"); return -1; } diff --git a/tests/ephy-web-view-test.c b/tests/ephy-web-view-test.c index ee2af1f97..eb0bffd53 100644 --- a/tests/ephy-web-view-test.c +++ b/tests/ephy-web-view-test.c @@ -246,7 +246,9 @@ main (int argc, char *argv[]) ephy_debug_init (); ephy_embed_prefs_init (); - if (!ephy_file_helpers_init (NULL, EPHY_FILE_HELPERS_PRIVATE_PROFILE, NULL)) { + if (!ephy_file_helpers_init (NULL, + EPHY_FILE_HELPERS_PRIVATE_PROFILE | EPHY_FILE_HELPERS_ENSURE_EXISTS, + NULL)) { g_debug ("Something wrong happened with ephy_file_helpers_init()"); return -1; } |