1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

tests: check that environment variable "HOME" is set before using it

This commit is contained in:
Sébastien Helleu
2023-10-30 08:45:44 +01:00
parent 60b2b03f9a
commit e140f3cf8e
+2
View File
@@ -903,6 +903,7 @@ TEST(CoreString, ExpandHome)
int length_home;
home = getenv ("HOME");
CHECK(home);
length_home = strlen (home);
POINTERS_EQUAL(NULL, string_expand_home (NULL));
@@ -927,6 +928,7 @@ TEST(CoreString, EvalPathHome)
struct t_hashtable *extra_vars, *options;
home = getenv ("HOME");
CHECK(home);
length_home = strlen (home);
length_weechat_config_dir = strlen (weechat_config_dir);