Modified test.h generator to return error if structure passed to vluke
authorTim Potter <tpot@samba.org>
Mon, 18 Sep 2000 01:14:21 +0000 (01:14 +0000)
committerTim Potter <tpot@samba.org>
Mon, 18 Sep 2000 01:14:21 +0000 (01:14 +0000)
doesn't match any known structure names.
(This used to be commit ce70fb5800a875ea755c96bc214033c5e9d81081)

source3/aparser/templates/harness.tpl
source3/aparser/templates/harness_end.tpl

index 0a10ccf49f3ebedba5209b62f8f1c9407464c022..27c33c0adc1aef13161eae73177fdff098732bdf 100644 (file)
@@ -2,4 +2,4 @@
        if (strcmp(test,"@TEST@")==0) {
           @TEST@ il;
           ret = io_@TEST@("@TEST@", ps, 0, &il, flags);
-       }
+       } else 
index 191351bee261208c44f0bb0fb063eb5a6d958ed8..1e15faec167f0e4c77050ca92e69e4c00f03af21 100644 (file)
@@ -1,3 +1,7 @@
+       {
+               printf("structure %s not found\n", test);
+               ret = False;
+       }
 
        return ret;
 }