diff options
| author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 01:30:50 +0100 |
|---|---|---|
| committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 01:30:50 +0100 |
| commit | 880e57271d66b34240b58bdbeaf9d53a08958eb2 (patch) | |
| tree | 73bbcd7f37ecadb6a117a9cd654df39e60e22180 /lib/tests/test_utils.c | |
| parent | e480c2bf48e1e905310f10ffbf1ddb190bf2e107 (diff) | |
| download | monitoring-plugins-880e57271d66b34240b58bdbeaf9d53a08958eb2.tar.gz | |
lib: clang-format
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 901e0cc3..c3150f00 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 | ||
