diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-03-16 18:10:47 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-03-16 18:10:47 +0000 |
commit | 4a7ff5e95203af8379c8ffe3fdf133714ecbadef (patch) | |
tree | d6d7609aaac3031e23289800f60933e79ec583a5 /lib/tests/config-dos.ini | |
parent | 92b969e2391936cbb66a8f547a77f94f05430419 (diff) | |
download | monitoring-plugins-4a7ff5e95203af8379c8ffe3fdf133714ecbadef.tar.gz |
Add tests:
- DOS-newline ini file
- section defined twice
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1951 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/tests/config-dos.ini')
-rw-r--r-- | lib/tests/config-dos.ini | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/tests/config-dos.ini b/lib/tests/config-dos.ini new file mode 100644 index 00000000..0cea3f3a --- /dev/null +++ b/lib/tests/config-dos.ini | |||
@@ -0,0 +1,24 @@ | |||
1 | # This config file is amended from perl's Config::Tiny's testcases | ||
2 | |||
3 | # Line below is allowed in perl's Config::Tiny, but not in our parse_ini.c | ||
4 | #root=something | ||
5 | |||
6 | [section] | ||
7 | one=two | ||
8 | Foo=Bar | ||
9 | this=Your Mother! | ||
10 | blank= | ||
11 | |||
12 | [Section Two] | ||
13 | something else=blah | ||
14 | remove = whitespace | ||
15 | |||
16 | [ /path/to/file.txt ] | ||
17 | this=that | ||
18 | |||
19 | [ section2] | ||
20 | this=that | ||
21 | |||
22 | [section3 ] | ||
23 | this=that | ||
24 | |||