diff options
Diffstat (limited to 'lib/tests/test_utils.c')
-rw-r--r-- | lib/tests/test_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tests/test_utils.c b/lib/tests/test_utils.c index 901e0cc..c3150f0 100644 --- a/lib/tests/test_utils.c +++ b/lib/tests/test_utils.c | |||
@@ -375,7 +375,8 @@ int main(int argc, char **argv) { | |||
375 | 375 | ||
376 | temp_state_key->_filename = "var/statefile"; | 376 | temp_state_key->_filename = "var/statefile"; |
377 | temp_state_data = np_state_read(); | 377 | temp_state_data = np_state_read(); |
378 | ok(this_monitoring_plugin->state->state_data != NULL, "Got state data now") || diag("Are you running in right directory? Will get coredump next if not"); | 378 | ok(this_monitoring_plugin->state->state_data != NULL, "Got state data now") || |
379 | diag("Are you running in right directory? Will get coredump next if not"); | ||
379 | ok(this_monitoring_plugin->state->state_data->time == 1234567890, "Got time"); | 380 | ok(this_monitoring_plugin->state->state_data->time == 1234567890, "Got time"); |
380 | ok(!strcmp((char *)this_monitoring_plugin->state->state_data->data, "String to read"), "Data as expected"); | 381 | ok(!strcmp((char *)this_monitoring_plugin->state->state_data->data, "String to read"), "Data as expected"); |
381 | 382 | ||