Permalink
Browse files

Make conf_read_valid_config work on systems that don't export $USER

  • Loading branch information...
1 parent 35afbf9 commit 59490598dbf2c7e060d17e090e4954dd2c5f7beb @jrosdahl committed Mar 5, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/test_conf.c
View
3 test/test_conf.c
@@ -84,8 +84,9 @@ TEST(conf_read_valid_config)
{
struct conf *conf = conf_create();
char *errmsg;
+ putenv("USER=rabbit");
const char *user = getenv("USER");
- CHECK(user);
+ CHECK_STR_EQ("rabbit", user);
create_file(
"ccache.conf",
"base_dir = /$USER/foo/${USER} \n"

0 comments on commit 5949059

Please sign in to comment.