Skip to content

Commit ffd0756

Browse files
committed
[Fix #85] correct test cases for settings
1 parent 1a63a6d commit ffd0756

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/minunit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static const char *test_config_file()
151151
static const char *test_settings()
152152
{
153153
retrieve_settings("./mbpfan.conf.test1");
154-
mu_assert("min_fan_speed value is not 6200", min_fan_speed == 6200);
154+
mu_assert("max_fan_speed value is not 6200", max_fan_speed == 6200);
155155
mu_assert("polling_interval is not 1", polling_interval == 1);
156156
retrieve_settings("./mbpfan.conf");
157157
mu_assert("min_fan_speed value is not 2000", min_fan_speed == 2000);
@@ -188,6 +188,7 @@ static const char *test_settings_reload()
188188
{
189189
signal(SIGHUP, handler);
190190
retrieve_settings("./mbpfan.conf");
191+
printf("Testing the _supplied_ mbpfan.conf (not the one you are using)..\n");
191192
mu_assert("min_fan_speed value is not 2000 before SIGHUP", min_fan_speed == 2000);
192193
mu_assert("polling_interval is not 7 before SIHUP", polling_interval == 7);
193194
raise(SIGHUP);

0 commit comments

Comments
 (0)