summaryrefslogtreecommitdiff
path: root/source3/aparser/templates
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-09-18 01:14:21 +0000
committerTim Potter <tpot@samba.org>2000-09-18 01:14:21 +0000
commit06e2871f7245c634d502cba12ba4a5fe9858b3ee (patch)
tree48dc7057f7c4d9edd31d9924ea37bc078a0ac225 /source3/aparser/templates
parentdf72a14ce8739a99b81ed04d496653608cb1ee41 (diff)
downloadsamba-06e2871f7245c634d502cba12ba4a5fe9858b3ee.tar.gz
samba-06e2871f7245c634d502cba12ba4a5fe9858b3ee.tar.bz2
samba-06e2871f7245c634d502cba12ba4a5fe9858b3ee.zip
Modified test.h generator to return error if structure passed to vluke
doesn't match any known structure names. (This used to be commit ce70fb5800a875ea755c96bc214033c5e9d81081)
Diffstat (limited to 'source3/aparser/templates')
-rw-r--r--source3/aparser/templates/harness.tpl2
-rw-r--r--source3/aparser/templates/harness_end.tpl4
2 files changed, 5 insertions, 1 deletions
diff --git a/source3/aparser/templates/harness.tpl b/source3/aparser/templates/harness.tpl
index 0a10ccf49f..27c33c0adc 100644
--- a/source3/aparser/templates/harness.tpl
+++ b/source3/aparser/templates/harness.tpl
@@ -2,4 +2,4 @@
if (strcmp(test,"@TEST@")==0) {
@TEST@ il;
ret = io_@TEST@("@TEST@", ps, 0, &il, flags);
- }
+ } else
diff --git a/source3/aparser/templates/harness_end.tpl b/source3/aparser/templates/harness_end.tpl
index 191351bee2..1e15faec16 100644
--- a/source3/aparser/templates/harness_end.tpl
+++ b/source3/aparser/templates/harness_end.tpl
@@ -1,3 +1,7 @@
+ {
+ printf("structure %s not found\n", test);
+ ret = False;
+ }
return ret;
}