--- a/libpurple/tests/meson.build Thu Jan 13 20:35:28 2022 -0600
+++ b/libpurple/tests/meson.build Thu Jan 13 20:35:29 2022 -0600
@@ -39,8 +39,5 @@
dependencies : [libpurple_dep, glib],
--- a/libpurple/tests/test_purplepath.c Thu Jan 13 20:35:28 2022 -0600
+++ b/libpurple/tests/test_purplepath.c Thu Jan 13 20:35:29 2022 -0600
@@ -2,36 +2,23 @@
-#define HOME g_get_home_dir()
-#define HOME g_getenv("APPDATA")
test_purplepath_home_dir(void) {
- g_assert_cmpstr(HOME, ==, purple_home_dir());
-test_purplepath_user_dir(void) {
- user_dir = g_build_filename(HOME, ".purple", NULL);
- g_assert_cmpstr(user_dir, ==, purple_user_dir());
+ home_dir = g_get_home_dir(); + home_dir = g_getenv("APPDATA"); + g_assert_cmpstr(home_dir, ==, purple_home_dir()); test_purplepath_cache_dir(void) {
- cache_dir = g_build_filename(g_get_home_dir(), ".cache", "purple", NULL);
- cache_dir = g_build_filename(g_getenv("LOCALAPPDATA"), "Microsoft",
- "Windows", "INetCache","purple", NULL);
+ cache_dir = g_build_filename(g_get_user_cache_dir(), "purple", NULL); g_assert_cmpstr(cache_dir, ==, purple_cache_dir());
@@ -40,11 +27,7 @@
test_purplepath_config_dir(void) {
- config_dir = g_build_filename(g_get_home_dir(), ".config", "purple", NULL);
- config_dir = g_build_filename(g_getenv("LOCALAPPDATA"), "purple", NULL);
+ config_dir = g_build_filename(g_get_user_config_dir(), "purple", NULL); g_assert_cmpstr(config_dir, ==, purple_config_dir());
@@ -53,12 +36,7 @@
test_purplepath_data_dir(void) {
- data_dir = g_build_filename(g_get_home_dir(), ".local", "share", "purple",
- data_dir = g_build_filename(g_getenv("LOCALAPPDATA"), "purple", NULL);
+ data_dir = g_build_filename(g_get_user_data_dir(), "purple", NULL); g_assert_cmpstr(data_dir, ==, purple_data_dir());
@@ -69,8 +47,6 @@
g_test_add_func("/purplepath/homedir",
test_purplepath_home_dir);
- g_test_add_func("/purplepath/userdir",
- test_purplepath_user_dir);
g_test_add_func("/purplepath/cachedir",
test_purplepath_cache_dir);
g_test_add_func("/purplepath/configdir",