diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-03-15 04:51:45 (GMT) |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-03-15 04:51:45 (GMT) |
commit | 6004d95868fcd9badbc0f026980a4a3597eb22db (patch) | |
tree | be1a47aeb9e08632f74bc7bd155504b0221367e2 /lib/tests/test_ini.t | |
parent | 118e57b78972c4fbbcd4f45d84af546d7346141d (diff) | |
download | monitoring-plugins-6004d95868fcd9badbc0f026980a4a3597eb22db.tar.gz |
This commit consist of two changes:
1. Make np_get_defaults return a linked list instead of a string. It will then be easy to convert the linked list back to an argument array.
2. Fix tests 3-4 of test_ini.c.
A test_ini.t was added too. parse_ini and test_ini aren't included yet in the build makefiles.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1945 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/tests/test_ini.t')
-rwxr-xr-x | lib/tests/test_ini.t | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tests/test_ini.t b/lib/tests/test_ini.t new file mode 100755 index 0000000..b130a01 --- /dev/null +++ b/lib/tests/test_ini.t | |||
@@ -0,0 +1,6 @@ | |||
1 | #!/usr/bin/perl | ||
2 | use Test::More; | ||
3 | if (! -e "./test_ini") { | ||
4 | plan skip_all => "./test_ini not compiled - please install tap library to test"; | ||
5 | } | ||
6 | exec "./test_ini"; | ||