From 06e2871f7245c634d502cba12ba4a5fe9858b3ee Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 18 Sep 2000 01:14:21 +0000 Subject: 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) --- source3/aparser/templates/harness.tpl | 2 +- source3/aparser/templates/harness_end.tpl | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'source3') 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; } -- cgit