From a2d60d9c226ac9de4d58fa2dc1018be89904dd4e Mon Sep 17 00:00:00 2001
From: Dmitri Pal <dpal@redhat.com>
Date: Sun, 6 Oct 2013 11:38:56 -0400
Subject: [PATCH 4/5] [INI] Test files for unit test

Update existing file with c-style comments.
Add another one for negative testing.
---
 ini/ini.d/comment.conf |   31 +++++++++++++++++++++++++++++++
 ini/ini.d/real.conf    |    6 ++++++
 2 files changed, 37 insertions(+), 0 deletions(-)
 create mode 100644 ini/ini.d/comment.conf

diff --git a/ini/ini.d/comment.conf b/ini/ini.d/comment.conf
new file mode 100644
index 0000000..e148d23
--- /dev/null
+++ b/ini/ini.d/comment.conf
@@ -0,0 +1,31 @@
+/* C-style comment 1 */
+/*
+ * C-style comment 2 */  
+
+/*
+//
+ * C-style comment 2 
+// 
+commented_out_key = some_value
+*/  
+
+# The following should be viewed as comment
+# so no error is expected
+/*/ = /*/
+
+# The following should be viewed as key
+# so no error is expected
+/./ = //
+
+# The following should be viewed as key
+# but it would be error due to spaces
+   /./* = /./
+
+ // This should be an error becuase parser thinks it should be a KVP line
+
+  	 	 /* Same with this one */
+
+/* This comment should procduce an error 
+
+
+
diff --git a/ini/ini.d/real.conf b/ini/ini.d/real.conf
index 78b5874..0458c60 100644
--- a/ini/ini.d/real.conf
+++ b/ini/ini.d/real.conf
@@ -1,6 +1,9 @@
+// This is a real file with some comments
+
 [config]
 version = 0.1
 
+/**/
 [monitor]
 description = Monitor Configuration
 sbusTimeout = 10
@@ -8,6 +11,9 @@ sbusAddress = unix:path=/var/lib/sss/pipes/private/dbus
 servicePingTime = 10
 bad_number = 5a
 
+/* Service section defines
+ * which service are allowed.
+ */           
 [services]
 description = Local service configuration
 activeServices = dp, nss, pam, info
-- 
1.7.1

