summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2007-09-19 23:00:22 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2007-09-19 23:00:22 +0000
commit15e2e2f5c7f9b3b94772d9d8b66b107ef6691bb4 (patch)
tree3abaa537fc318684e62f381283c308a7dd6791e9 /test
parentb2256675eaf9cf9fa239da93db4f205d97fc710c (diff)
downloadlibdom-15e2e2f5c7f9b3b94772d9d8b66b107ef6691bb4.tar.gz
libdom-15e2e2f5c7f9b3b94772d9d8b66b107ef6691bb4.tar.bz2
Stop TestObject appending .xml to the filename -- the auto-generated testcases already have it appended.
Fixup binding testcase appropriately. svn path=/trunk/dom/; revision=3552
Diffstat (limited to 'test')
-rw-r--r--test/binding.c2
-rw-r--r--test/testutils.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/binding.c b/test/binding.c
index 8c621ab..a06763c 100644
--- a/test/binding.c
+++ b/test/binding.c
@@ -9,7 +9,7 @@ int main(int argc, char **argv)
dom_exception err;
TestObject *staff;
- staff = test_object_create(argc, argv, "staff", false);
+ staff = test_object_create(argc, argv, "staff.xml", false);
assert(staff != NULL);
doc = test_object_get_doc(staff);
diff --git a/test/testutils.h b/test/testutils.h
index 8387636..e3009af 100644
--- a/test/testutils.h
+++ b/test/testutils.h
@@ -90,7 +90,7 @@ TestObject *test_object_create(int argc, char **argv,
xml_parser_initialised = true;
}
- snprintf(fnbuf, sizeof fnbuf, "%s/%s.xml", argv[1], uri);
+ snprintf(fnbuf, sizeof fnbuf, "%s/%s", argv[1], uri);
ret = malloc(sizeof(TestObject));
if (ret == NULL)