diff options
Diffstat (limited to 'lib/tests/test_utils.c')
| -rw-r--r-- | lib/tests/test_utils.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/tests/test_utils.c b/lib/tests/test_utils.c index ce79fc64..4f761a6d 100644 --- a/lib/tests/test_utils.c +++ b/lib/tests/test_utils.c | |||
| @@ -308,11 +308,19 @@ main (int argc, char **argv) | |||
| 308 | ok( !strcmp(temp_state_key->name, "83d877b6cdfefb5d6f06101fd6fe76762f21792c"), "Got generated filename" ); | 308 | ok( !strcmp(temp_state_key->name, "83d877b6cdfefb5d6f06101fd6fe76762f21792c"), "Got generated filename" ); |
| 309 | 309 | ||
| 310 | 310 | ||
| 311 | np_enable_state("bad^chars$in@here", 77); | 311 | np_enable_state("allowedchars_in_keyname", 77); |
| 312 | temp_state_key = this_nagios_plugin->state; | 312 | temp_state_key = this_nagios_plugin->state; |
| 313 | ok( !strcmp(temp_state_key->plugin_name, "check_test"), "Got plugin name" ); | 313 | ok( !strcmp(temp_state_key->plugin_name, "check_test"), "Got plugin name" ); |
| 314 | ok( !strcmp(temp_state_key->name, "allowedchars_in_keyname"), "Got key name with valid chars" ); | ||
| 315 | ok( !strcmp(temp_state_key->_filename, "/usr/local/nagios/var/check_test/allowedchars_in_keyname"), "Got internal filename" ); | ||
| 316 | |||
| 317 | |||
| 318 | /* Don't do this test just yet. Will die */ | ||
| 319 | /* | ||
| 320 | np_enable_state("bad^chars$in@here", 77); | ||
| 321 | temp_state_key = this_nagios_plugin->state; | ||
| 314 | ok( !strcmp(temp_state_key->name, "bad_chars_in_here"), "Got key name with bad chars replaced" ); | 322 | ok( !strcmp(temp_state_key->name, "bad_chars_in_here"), "Got key name with bad chars replaced" ); |
| 315 | ok( !strcmp(temp_state_key->_filename, "/usr/local/nagios/var/check_test/bad_chars_in_here"), "Got internal filename" ); | 323 | */ |
| 316 | 324 | ||
| 317 | np_enable_state("funnykeyname", 54); | 325 | np_enable_state("funnykeyname", 54); |
| 318 | temp_state_key = this_nagios_plugin->state; | 326 | temp_state_key = this_nagios_plugin->state; |
