summaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2004-04-13 01:37:57 +0000
committerJon Trowbridge <trow@ximian.com>2004-04-13 01:37:57 +0000
commit0da46fa5a48dee0ac2be00886a6ed5fe429f20be (patch)
tree439e33fdde9619e96e8921025e0732cb28e468d1 /test/data
parente039be5838a6befdb4a378fcdc1fc2e7606d4222 (diff)
2004-04-12 Jon Trowbridge <trow@ximian.com>
* bus/config-parser.c (struct BusConfigParser): Added included_files field. (seen_include): Added. Checks whether or not a file has already been included by any parent BusConfigParser. (bus_config_parser_new): Copy the parent's included_files. (include_file): Track which files have been included, and fail on circular inclusions. (process_test_valid_subdir): Changed printf to report if we are testing valid or invalid conf files. (all_are_equiv): Changed printf to be a bit clearer about what we are actually doing. (bus_config_parser_test): Test invalid configuration files.
Diffstat (limited to 'test/data')
-rw-r--r--test/data/invalid-config-files/circular-1.conf4
-rw-r--r--test/data/invalid-config-files/circular-2.conf4
-rw-r--r--test/data/invalid-config-files/circular-3.conf4
3 files changed, 12 insertions, 0 deletions
diff --git a/test/data/invalid-config-files/circular-1.conf b/test/data/invalid-config-files/circular-1.conf
new file mode 100644
index 00000000..faa895a3
--- /dev/null
+++ b/test/data/invalid-config-files/circular-1.conf
@@ -0,0 +1,4 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+<include>circular-1.conf</include>
+</busconfig> \ No newline at end of file
diff --git a/test/data/invalid-config-files/circular-2.conf b/test/data/invalid-config-files/circular-2.conf
new file mode 100644
index 00000000..46a7e78e
--- /dev/null
+++ b/test/data/invalid-config-files/circular-2.conf
@@ -0,0 +1,4 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+<include>circular-3.conf</include>
+</busconfig> \ No newline at end of file
diff --git a/test/data/invalid-config-files/circular-3.conf b/test/data/invalid-config-files/circular-3.conf
new file mode 100644
index 00000000..87e354d9
--- /dev/null
+++ b/test/data/invalid-config-files/circular-3.conf
@@ -0,0 +1,4 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+<include>circular-2.conf</include>
+</busconfig> \ No newline at end of file