1 ## This file currently uses GNU Make features; those should really be replaced
2 ## by configure-time handling.
4 AUTOMAKE_OPTIONS = 1.5 foreign
6 ## Use this to configure diff output
11 ## Set up the splint commands
13 SPLINT = $(top_builddir)/src/splint$(EXEEXT)
19 ### This is horrible! Can't we make top_builddir absolute?
20 SPLINTNEST = ../$(top_builddir)/src/splint$(EXEEXT)
22 SPLINTPNEST = @$(SPLINTNEST) -nof
23 SPLINTP = @$(SPLINT) -nof
25 # Make sure .splintrc files are not used so test results do not
26 # depend on local settings.
27 SPLINTRN = $(SPLINTP) -hints -booltype "bool"
28 SPLINTR = $(SPLINTRN) -exportlocal +debugfcnconstraint
30 SPLINTRNNEST = $(SPLINTPNEST) -hints -booltype "bool"
31 SPLINTRNEST = $(SPLINTRNNEST) -exportlocal +debugfcnconstraint
34 ### rcfiles not included becuase file names will not match exactly
39 abstptr abstract alias alttypes ansireserved argorder \
40 args blocks break cases cast charlit clauses commentchar compdestroy \
41 constannot controldepth csyntax czechnames czechoslovaknames deadparam \
42 decl enum exports external fields flags forbody format freearray \
43 funcpointer functionmacro glob globals impabstract info init inparam internal iter keep libs \
44 linked lintcomments list loopexec \
45 macros macrosef merge mergenull modifies modtest moduncon \
46 mongoincludes mystrncat noeffect null observer oldstyle outglob outparam \
47 postnotnull preds prefixes printflike rc refcounts release repexpose \
48 returned sharing shifts slovaknames \
50 special stack staticarray strings \
51 structassign typequals ud ulstypes union unioninit unreachable unsignedcompare \
52 unused ullint utypes void widestrings
53 UNITEXPECTS = $(addsuffix .expect, $(UNITTESTS))
55 SUBDIRTESTS = metastate mergestate tainted fileio \
56 simplebufferConstraintTests moreBufferTests moreBufferTests2 globalbufferannotation \
57 maxset strchr for manual
59 ### warnuse doesn't work yet!
60 SUBDIRTESTS += tests2.2
61 SUBDIRTESTS += tests2.4
62 SUBDIRTESTS += tests2.5
63 SUBDIRTESTS += db1 db2 db3
65 SPLINTTESTS = $(UNITTESTS) $(SUBDIRTESTS)
74 -$(SPLINTP) -help version
79 -@LARCH_PATH=/dev/null; $(SPLINT) -nof empty.lcl
82 -@$(SPLINTP) +boolint +boolint
83 -@$(SPLINTP) -help flags alpha
84 -@$(SPLINTP) -help flags all
88 -rm -f *~ #*# *.o *.lcs a.out
89 -cd db1; $(MAKE) clean
90 -cd db2; $(MAKE) clean
91 -cd db3; $(MAKE) clean
93 ## All tests need splint to be built
95 $(SPLINTTESTS): $(SPLINT)
98 cd $(top_builddir)/src; $(MAKE)
100 ## This is a kludgey way of processing the output to make it match exactly
101 ## The last matcher is the most annoying, as it can differ (the first two are
102 ## pretty much fixed); usually, you'll have 'make[1]:', but on DOS it is
103 ## 'make.exe[1]:' (it might even be 'c:/path/to/make.exe[1]:', but that's
105 ## The tests should really be re-done as shell-scripts or something... maybe
106 ## autotest could be used once it's finished.
108 CLEANOUTPUT = $(GREP) -v "Splint 3." | $(GREP) -v "$(SPLINT)" | $(GREP) -v "^make.*\[[1-9]*\]:" | $(GREP) -v "config.status: creating test/Makefile" | $(GREP) -v "cd .. && " | $(GREP) -v "CONFIG_HEADERS=" | $(GREP) -v "CONFIG_FILES="
113 $(MAKE) $* |& $(CLEANOUTPUT) >$*.expect && cat $*.expect
116 $(MAKE) $* |& $(CLEANOUTPUT) >$*.out && diff $*.expect $*.out
118 #drl temporally take this out.
121 # @echo "Saving old expects..."; \
122 # cat *.expect >expects-`date +"%y-%m-%d-%H"`
123 # @for TEST in $(UNITTESTS) $(INTEGTESTS); do \
124 # echo "Making $$TEST.expect..."; \
125 # $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.expect; \
126 # cat $$TEST.expect; \
131 @for TEST in $(QUICKTESTS); do \
132 echo "Checking $$TEST..."; \
133 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
134 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
135 echo "*** FAIL ***"; \
140 @echo "Testing $(PACKAGE) $(VERSION)..."
142 @echo "Version Info:"
143 @$(SPLINTP) -help version
144 @$(SPLINTP) -help vars
148 @for TEST in $(SPLINTTESTS); do \
149 echo "Checking $$TEST..."; \
150 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
151 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
152 echo "*** FAIL ***"; \
155 ### Rules for tests start here
159 -$(SPLINTR) abstptr -expect 9
160 -$(SPLINTR) abstptr +voidabstract -expect 6
164 -$(SPLINTR) abst_t.lcl commentcmd.c -expect 15
169 -$(SPLINTR) mut alias +globalias -expect 19
170 -$(SPLINTR) mut alias2 +globalias -expect 17
171 -$(SPLINTR) +lh alias3 -expect 14
172 -$(SPLINTR) +lh alias4 +boolint
173 -$(SPLINTR) alias4 -pred +retalias -expect 6
174 -$(SPLINTR) +lh alias5 +memchecks -null -specundef -expect 5
178 -$(SPLINTR) alttypes.c -expect 2
181 ### evans 2001-06-07 - updated nameCheck.c to reflect C9X.
182 ### Reports one new errors for ansireserved.c - wctomb is bad even as a local
183 ### variable (could be a macro?)
184 ### Reports 3 additional errors for +checks; no longer suppresses name errors
185 ### in the presense of other errors.
190 -$(SPLINTR) ansireserved.c +ansireserved -nolib -expect 9
191 -$(SPLINTR) ansireserved.c +ansireserved +ansireservedlocal -nolib -expect 11
192 -$(SPLINTRN) ansireserved.c +checks -exportlocal -exportheadervar -exportheader -expect 12
193 -$(SPLINTR) ansireserved2.c +ansireserved -expect 1
197 -$(SPLINTR) argorder.c -expect 4
198 -$(SPLINTR) argorder2 -expect 5
199 -$(SPLINTR) argorder3.c -expect 8
200 -$(SPLINTR) argorder4 -expect 9
201 -$(SPLINTR) argorder4 -evalorder -expect 1
202 -$(SPLINTR) argorder5.c +evalorderuncon -expect 3
206 -$(SPLINTR) args -noeffect -expect 12
210 -$(SPLINTR) blocks.c -expect 4
211 -$(SPLINTR) blocks.c +ifblock +elseifcomplete -expect 7
212 -$(SPLINTR) blocks.c -ifempty +whileempty +whileblock -expect 3
213 -$(SPLINTR) blocks.c -ifempty +forempty +forblock -expect 3
214 -$(SPLINTR) blocks.c +allempty -expect 6
215 -$(SPLINTRN) blocks.c +strict -exportlocal +partial -exportheader -expect 11
219 -$(SPLINTR) break.c -expect 4
220 -$(SPLINTR) break.c +deepbreak -expect 6
221 -$(SPLINTR) break.c +deepbreak -looploopbreak -expect 5
225 -$(SPLINTR) cases.c -expect 5
226 -$(SPLINTR) cases2.c -expect 2
227 -$(SPLINTRN) cases2.c +checks -exportlocal -exportheader -expect 3
228 -$(SPLINTRN) cases2.c +checks -exportlocal -exportheader -branchstate -expect 3
232 -$(SPLINTR) cast -accessmodule -expect 20
233 -$(SPLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
235 ### Two addition errors detected with 2.5 with -numliteral.
239 -$(SPLINTR) +hints charlit.c -expect 4
240 -$(SPLINTR) +hints -numliteral charlit.c -expect 6
241 -$(SPLINTR) +hints charlit.c +charintliteral +ignoresigns
245 -$(SPLINTR) clauses.c +memchecks -expect 4
246 -$(SPLINTR) clauses2.c +memchecks
247 -$(SPLINTR) clauses3.c +memchecks -expect 2
248 -$(SPLINTR) clauses3.c +memchecks +unixlib -expect 3
252 -$(SPLINTR) commentchar.c -expect 4
253 -$(SPLINTR) -commentchar '#' commentchar.c -expect 4
257 -$(SPLINTR) +hints -controlnestdepth 2 controldepth.c -expect 2
258 -$(SPLINTR) +hints -controlnestdepth 1 controldepth.c -expect 2
262 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader -expect 1
263 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy -expect 2
264 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy +strictusereleased -expect 3
265 -$(SPLINTRN) compdestroy.c +strict +partial -exportheader -expect 3
269 ${SPLINTRN} constannot.c +boundswrite -exportlocal -expect 2
273 -$(SPLINTR) +quiet -incondefs csyntax.c -expect 1
274 -$(SPLINTR) +quiet csyntax2.c -expect 2
275 -$(SPLINTR) +quiet csyntax3.c -expect 1
276 -$(SPLINTR) +quiet -incondefs csyntax4.c
277 -$(SPLINTR) +quiet csyntax5.c
278 -$(SPLINTR) +quiet csyntax6.c
279 -$(SPLINTR) +quiet csyntax7.c
280 -$(SPLINTR) +quiet csyntax8.c
281 -$(SPLINTR) +quiet csyntax9.c
282 -$(SPLINTR) +quiet csyntax10.c
283 -$(SPLINTR) +quiet csyntax11.c
284 -$(SPLINTR) +quiet csyntax12.c
285 -$(SPLINTR) +quiet csyntax13.c -expect 1
286 -$(SPLINTR) +quiet csyntax14.c
287 -$(SPLINTR) +quiet csyntax15.c
288 -$(SPLINTR) +quiet csyntax16.c -expect 2
289 -$(SPLINTR) +quiet csyntax17.c -expect 3
293 -$(SPLINTR) czechnames.c
294 -$(SPLINTR) +hints +czech czechnames.c -expect 2
295 -$(SPLINTR) +hints +czech -czechvars czechnames.c -expect 1
296 -$(SPLINTR) +hints +czech -accessczech czechnames.c -expect 6
298 .PHONY: czechoslovaknames
300 -$(SPLINTR) +hints +czechoslovak czechnames.c -expect 1
301 -$(SPLINTR) +hints +czechoslovak slovaknames.c -expect 1
302 -$(SPLINTR) +hints +czechoslovak +slovakvars slovaknames.c -expect 2
305 ### deadparam added 2001-05-27
310 ${SPLINTR} deadparam.c -expect 3
313 # Was expect 3 before 2.4. Earlier versions did not handle implicit
314 # function pointers correctly.
319 -$(SPLINTR) decl.c -expect 2
320 -$(SPLINTRN) decl.c +strict -exportlocal -expect 5
321 -$(SPLINTR) decl2 -expect 4
325 -$(SPLINTR) enum -expect 16
326 -$(SPLINTR) enum -misscase -expect 14
330 -$(SPLINTR) exports.c +exporttype +exportvar +exportfcn +topuse +typeuse -expect 6
331 -$(SPLINTR) exports.c +exportany -expect 3
332 -$(SPLINTR) exports.c
336 -$(SPLINTR) external.c +partial
337 -$(SPLINTR) external.c +partial +distinctexternalnames +ansi89limits -expect 2
338 -$(SPLINTR) external.c -nolib +partial -externalnamelength 3 -expect 3
339 -$(SPLINTR) external.c -nolib +partial -externalnamelength 3 +externalnamecaseinsensitive -expect 3
340 -$(SPLINTR) external.c +partial -externalnamelength 3 -expect 4
344 -$(SPLINTR) fields.c +memchecks -expect 6
345 -$(SPLINTR) fields2.c +memchecks -expect 5
346 -$(SPLINTR) fields3.c +memchecks
350 -$(SPLINTR) flags.c -expect 8
351 -$(SPLINTR) +nocomments flags.c -expect 2
357 ${SPLINTR} forbody.c -expect 2
362 ${SPLINTR} format.c -expect 3
363 ${SPLINTR} format.c -formatconst
365 # two new errors (invalid lhs)
369 -$(SPLINTR) +memchecks +noparams funcpointer.c -expect 18
371 .PHONY: functionmacro
373 -$(SPLINTR) functionmacro.c -expect 2
377 -$(SPLINTR) glob -expect 4
378 -$(SPLINTR) glob -globuse -expect 3
379 -$(SPLINTR) glob +globunspec -expect 6
383 -$(SPLINTR) -modifies globals.c -expect 5
384 -$(SPLINTR) -modifies globals.c +allglobals -expect 6
385 -$(SPLINTR) -modifies globals.c +impcheckedglobals -expect 6
386 -$(SPLINTR) -modifies globals.c -globals -checkstrictglobals -expect 2
387 -$(SPLINTR) -modifies globals.c +globunspec -expect 6
388 -$(SPLINTR) -modifies globals.c +globunspec +allglobals -expect 8
393 -$(SPLINTR) -accessmodule impabstract.c
394 -$(SPLINTR) -accessmodule +hints +impabstract impabstract.c -expect 2
395 -$(SPLINTR) -accessmodule +hints +impabstract impabstract -expect 4
398 ### evans 2001-12-30: Handle unrecognized pre-processor directives
399 ### (Reported by Pierluigi Sanzani)
403 ${SPLINTR} info.c -expect 4
405 ### evans 2001-10-14: Expected errors updated
408 -$(SPLINTR) init.c -expect 14
409 -$(SPLINTRN) init.c +checks -exportlocal -exportheadervar -expect 17
414 -$(SPLINTR) inparam.c -expect 2
415 -$(SPLINTR) +impouts inparam.c -expect 1
419 -$(SPLINTR) internal.c -expect 1
420 -$(SPLINTR) internal.c +distinctinternalnames -expect 1
421 -$(SPLINTR) internal.c +distinctinternalnames +ansi89limits -expect 2
422 -$(SPLINTR) internal.c -internalnamelen 28 -expect 3
423 -$(SPLINTR) internal.c +internalnamecaseinsensitive -expect 3
424 -$(SPLINTR) internal.c +internalnamecaseinsensitive +internalnamelookalike -expect 11
428 ### 2001-06-06: Error message for iter.lcl:3,6 fixed to iter.lcl:3:6
433 -$(SPLINTR) iter -expect 14 -lclexpect 1
434 -$(SPLINTR) iter2.c -expect 12
438 -$(SPLINTR) keep.c +memchecks -expect 6
441 ### 2001-05-22: 2 new errors found (fixed spec of signal)
442 ### 2001-05-30: 3 new errors found (formatconst)
446 -$(SPLINTR) libs.c +longunsignedunsignedintegral -expect 18
447 -$(SPLINTR) libs.c -expect 22
448 -$(SPLINTR) libs.c +globunspec +modunspec -expect 25
449 -$(SPLINTR) libs.c +strictlib +globunspec +modunspec -expect 42
453 -$(SPLINTR) lintcomments.c -expect 5
454 -$(SPLINTR) lintcomments.c -warnlintcomments -expect 1
455 -$(SPLINTR) lintcomments.c -lintcomments -expect 4
459 -$(SPLINTR) list.c -expect 3
462 ### 2002-01-01: Added test case for obvious loop execution.
467 -$(SPLINTR) loopexec.c -expect 1
468 -$(SPLINTR) loopexec.c -obviousloopexec -expect 3
473 -$(SPLINTR) macros -expect 17
474 -$(SPLINTR) macros.c +allmacros -expect 34
475 -$(SPLINTR) macros.c +fcnmacros -expect 31
480 -$(SPLINTR) macrosef -expect 4
481 -$(SPLINTR) macrosef.c +allmacros -expect 3
482 -$(SPLINTR) macrosef.c +allmacros +sefuncon -expect 4
486 -$(SPLINTRN) merge.c +checks -exportlocal -exportheadervar -exportheader -expect 3
490 -$(SPLINTRN) mergenull.c
494 -$(SPLINTR) modifies.c modclient.c +impcheckedstatics +mustmod -expect 7
498 -$(SPLINTR) modtest -expect 10
499 -$(SPLINTR) modtest +modunspec -expect 13
500 -$(SPLINTR) modtest +mustmod -expect 14
504 -$(SPLINTR) moduncon.c +moduncon -memchecks -expect 4
505 -$(SPLINTRN) moduncon.c +strict -exportlocal -expect 22
507 .PHONY: mongoincludes
509 -$(SPLINTR) mongoincludes.c -includenest 1 -expect 19
510 -$(SPLINTR) mongoincludes.c -includenest 2 -expect 10
511 -$(SPLINTR) mongoincludes.c -includenest 3 -expect 4
512 -$(SPLINTR) mongoincludes.c -includenest 4 -expect 1
513 -$(SPLINTR) mongoincludes.c -includenest 5 -expect 0
517 -$(SPLINTR) mystrncat.c +boundsread +boundswrite -expect 4
521 ${SPLINT} -nof noeffect.c +allmacros +checks -expect 3
524 ### 2002-01-01: null1.c: expect increased to 15 because out must be defined
525 ### checking detects one new error
530 -$(SPLINTR) null1.c -expect 15
531 -$(SPLINTR) null1.c -null -mustdefine -expect 4
532 -$(SPLINTR) null2.c -expect 11
533 -$(SPLINTR) null3.c -expect 15
534 -$(SPLINTR) null3.c -warnunixlib +unixlib -expect 16
535 -$(SPLINTR) null4.c -expect 1
536 -$(SPLINTR) null5.c -expect 4
537 -$(SPLINTR) null6 -expect 4
538 -$(SPLINTR) +quiet null6.lcl -dump null6
539 -$(SPLINTR) null6.c -load null6 -expect 4
541 ### Added for 3.0 (bugs reported by Kevin Broady)
545 -$(SPLINTR) nullret.c -expect 2
546 -$(SPLINTR) -nullret nullret.c -expect 1
550 -$(SPLINTR) nullassign.c -expect 2
551 -$(SPLINTR) -nullassign nullassign.c -expect 1
555 # Before 2.4, expected one more because error was reported both as
556 # dependent and observer.
561 -$(SPLINTRN) observer +checks -exportlocal -exportheader -expect 9
562 -$(SPLINTRN) observer.c +checks -exportlocal -exportheader -expect 8
563 -$(SPLINTR) observer.c -expect 7
567 -$(SPLINTR) oldstyle -expect 3
571 -$(SPLINTR) outglob -expect 10
575 -$(SPLINTR) outparam -expect 12
577 ### evans 2001-08-26: postnotnull new
581 ${SPLINTR} postnotnull.c -expect 1
583 # Four new +fcnuse errors for -strict (evans 2001-07-22)
588 -$(SPLINTR) +hints preds.c -expect 6
589 -$(SPLINTRN) +hints preds.c -weak -expect 1
590 -$(SPLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 12
594 -$(SPLINTR) prefixes.c +partial
595 -$(SPLINTRN) prefixes.c +allmacros +checks -exportlocal +partial -exportheader -exportheadervar -expect 4
596 -$(SPLINTR) prefixes.c -typeprefix "T" -expect 2
597 -$(SPLINTR) prefixes.c -typeprefix "^" -expect 1
598 -$(SPLINTR) prefixes.c -typeprefix "^*" -expect 2
599 -$(SPLINTR) prefixes.c -typeprefix "^%*" -expect 2
600 -$(SPLINTR) prefixes.c -typeprefix "^~*" -expect 2
601 -$(SPLINTR) prefixes.c -typeprefix "^" +typeprefixexclude -expect 7
602 -$(SPLINTR) prefixes.c -filestaticprefix "^^" -expect 4
603 -$(SPLINTR) prefixes.c -filestaticprefix "^#" -expect 5
604 -$(SPLINTR) prefixes.c -filestaticprefix "^?&x" -expect 5
605 -$(SPLINTR) prefixes.c -globalprefix "G" -expect 1
606 -$(SPLINTR) prefixes.c -globalprefix "&G?_^" -expect 1
607 -$(SPLINTR) prefixes.c -externalprefix "G" -expect 5
608 -$(SPLINTR) prefixes.c -typeprefix "T" -externalprefix "G" -expect 4
609 -$(SPLINTR) prefixes.c -localprefix "?*" +localprefixexclude -expect 13
613 -$(SPLINTR) printflike.c -expect 6
614 -$(SPLINTR) printflike.c -warnlintcomments -expect 5
618 -$(SPLINTR) -DMYSTERY='"a flag\"wicked cool"' rc.c -expect 1
619 -$(SPLINTR) -DMYSTERY=12 rc.c -expect 1
620 -$(SPLINTR) -f rc1.splintrc rc.c -expect 1
621 -$(SPLINTR) -UMYSTERY -f rc1.splintrc rc.c -expect 1
622 -$(SPLINTR) -f rc3.splintrc rc.c -expect 1
626 cd rcfiles; ${MAKE} SPLINT="-$(SPLINTPNEST)"
630 -$(SPLINTR) refcounts.c -expect 7
634 -$(SPLINTR) release.c +memchecks -expect 1
638 -$(SPLINTR) +lh repexpose +memchecks -expect 12
639 -$(SPLINTR) repexpose +memchecks +retalias -expect 15
640 -$(SPLINTRN) repexpose +checks -exportlocal -expect 27
642 ### returned added 2001-05-27
643 ### (Bug discovered checking splint sources.)
647 ${SPLINTR} returned.c -expect 1
651 -$(SPLINTR) sharing1.c -expect 21
652 -$(SPLINTR) sharing3.c -expect 3
653 -$(SPLINTR) sharing4.c -expect 13
654 -$(SPLINTR) sharing4.c -paramimptemp -expect 12
655 -$(SPLINTR) sharing5.c -expect 6
659 -$(SPLINTR) shifts.c -expect 4
660 -$(SPLINTR) shifts.c -shiftimplementation -expect 3
661 -$(SPLINTR) shifts.c -shiftnegative -expect 1
665 -$(SPLINTR) +hints slovaknames.c -expect 1
666 -$(SPLINTR) +hints slovaknames.c +accessslovak
667 -$(SPLINTR) +hints +slovak slovaknames.c -expect 3
668 -$(SPLINTR) +hints +slovak -slovakvars slovaknames.c -expect 2
669 -$(SPLINTR) +hints +slovak -accessslovak slovaknames.c -expect 7
673 -$(SPLINTR) specclauses.c -expect 6
674 -$(SPLINTR) specclauses2.c -expect 8
675 -$(SPLINTR) specclauses3.c -expect 6
676 -$(SPLINTR) specclauses4.c -expect 3
677 -$(SPLINTR) specclauses5.c -expect 3
681 -$(SPLINTR) specclauses.c -expect 6
685 -$(SPLINTR) specclauses2.c -expect 8
689 -$(SPLINTR) specclauses3.c -expect 6
693 -$(SPLINTR) specclauses4.c -expect 3
697 -$(SPLINTR) specclauses5.c -expect 3
701 -$(SPLINTR) special -expect 20
702 -$(SPLINTR) special -relaxquals -expect 22
706 -$(SPLINTR) stack.c -expect 5
707 -$(SPLINTR) stack.c -stackref
711 -$(SPLINTR) staticarray.c -expect 3
715 -$(SPLINTR) strings.c -expect 3
716 -$(SPLINTR) -readonlystrings -expect 1 strings.c
717 -$(SPLINTR) +modobserverstrict -maintype -expect 4 strings.c
721 -$(SPLINTR) structassign.c -expect 4
725 -$(SPLINTR) typequals.c tq.lcl -expect 5
726 -$(SPLINTR) typequals.c -expect 2
730 -$(SPLINTR) ud.c -expect 9
731 -$(SPLINTR) ud2 -specundef -expect 3
735 -$(SPLINTR) ulstypes.c -expect 8
736 -$(SPLINTR) ulstypes.c +ignorequals
737 -$(SPLINTRN) ulstypes.c +strict -exportheader -exportheadervar -expect 28
739 # 3 more detected with version 2.5 (change in -numliteral setting)
743 -$(SPLINTR) +memchecks union.c -expect 8
746 ### Added 2001-12-30: fixed union initializer checking in response to
747 ### bug report from Jim Zelenka.
752 -$(SPLINTR) unioninit.c -expect 2
756 -$(SPLINTR) unreachable.c -expect 5
757 -$(SPLINTR) -unreachable unreachable.c -expect 2
758 -$(SPLINTR) switch.c -expect 4
760 .PHONY: unsignedcompare
762 ${SPLINTR} +posixlib unsignedcompare.c -expect 4
766 ### 2001-06-08 evans: 2 new errors after fixing ansireserved name checks
771 -$(SPLINTRN) unused.c +checks -exportlocal -expect 5
772 -$(SPLINTRN) unused.c +checks -exportlocal +topuse -expect 8
775 ### 2001-06-10: Provided by Jim Zalenka
780 ${SPLINTRN} ullint.c -expect 5
781 ${SPLINTRN} ullint.c +charint +charintliteral -expect 2
784 ### 2001-12-30: Poor warnings reported by Peter Deutsch
789 ${SPLINTRN} utypes.c -expect 6
795 ${SPLINTRN} void.c -expect 2
798 ### 2001-12-30: Problems with wide character strings reported by Nelson Beebe
803 ${SPLINTRN} widestrings.c -expect 2
811 ${SPLINTR} linked.c -expect 4
812 ${SPLINTR} linked2.c -expect 3
813 ${SPLINTR} linked3.c -expect 5
814 ${SPLINTR} linked4.c -expect 6
815 ${SPLINTR} linked5.c -expect 4
816 ${SPLINTR} linked6.c -expect 4
820 ${SPLINTR} freearray.c -expect 1
824 -$(SPLINTR) +bounds sizeof.c -expect 1
828 -$(SPLINTR) +bounds buffertest1.c -expect 5
833 ## db2: 2 errors are no longer reported, since eref is immutable.
834 ## Need to clarify what it means for an object to be immutable;
835 ## there should be 2 types with different storage requirements.
837 .PHONY: $(SUBDIRTESTS)
839 cd $@; $(MAKE) SPLINT="$(SPLINTRNNEST)"
841 #drl 11/29/2001 This is a very ugly hack to get make dist to work
842 EXTRA_DIST = ./abst_t.lcl ./abst_t.lcs \
843 ./abstptr.lcl ./abstptr.lcs \
844 ./alias.lcl ./alias.lcs \
845 ./alias2.lcl ./alias2.lcs \
916 ./repexpose.lh.expect \
933 ./globalbufferannotation/.splintrc \
936 ./tests2.2/bool.lcl \
937 ./tests2.2/bool.lcs \
938 ./tests2.2/libraries.lcd \
939 ./tests2.2/obsolete.lcd \
940 ./tests2.2/oldversion.lcd \
941 ./tests2.4/subdir/main.lcl \
942 ./tests2.4/subdir/main.lcs \
943 ./tests2.5/newlint.lcd \
944 ./warnuse/warnuse.lcd \
1004 ./czechoslovaknames.c \
1120 ./unsignedcompare.c \
1123 ./conditions/miroslaw.c \
1124 ./conditions/releases.c \
1126 ./fileio/filebranch.c \
1129 ./globalbufferannotation/globalvariable.c \
1130 ./maxset/maxsetannotations.c \
1131 ./maxset/maxsetnoannotations.c \
1132 ./mergestate/taintednm.c \
1133 ./metastate/file.c \
1134 ./metastate/file1.c \
1135 ./metastate/file2.c \
1136 ./metastate/file3.c \
1137 ./metastate/file4.c \
1138 ./metastate/file5.c \
1139 ./metastate/file6.c \
1140 ./metastate/file7.c \
1141 ./metastate/filebad.c \
1142 ./metastate/global.c \
1143 ./metastate/nullbranch.c \
1144 ./metastate/nullbranch2.c \
1145 ./metastate/nullret.c \
1147 ./metastate/sockets.c \
1148 ./metastate/sockets2.c \
1149 ./metastate/struct.c \
1150 ./metastate/test.c \
1151 ./metastate/voidptr.c \
1152 ./moreBufferTests/initialization.c \
1153 ./moreBufferTests/simplifyTest.c \
1154 ./moreBufferTests/strncatNotReallyGood.c \
1155 ./moreBufferTests/strncatReallyGood.c \
1156 ./moreBufferTests/strrchr.c \
1157 ./moreBufferTests/unrecogCall.c \
1158 ./nullterminatedtest/buggy1.c \
1159 ./nullterminatedtest/buggy_support1.c \
1160 ./nullterminatedtest/buggy_support_fmakeword.c \
1161 ./nullterminatedtest/test1.c \
1162 ./nullterminatedtest/test3.c \
1163 ./simplebufferConstraintTests/m.c \
1164 ./simplebufferConstraintTests/sizeof.c \
1165 ./simplebufferConstraintTests/test3.c \
1166 ./simplebufferConstraintTests/test7.c \
1167 ./sizeoftest/sizeof.c \
1169 ./suppressfile/test.c \
1170 ./tainted/sprintf.c \
1172 ./tainted/tainted.c \
1173 ./tainted/tainted2.c \
1174 ./tainted/tainted3.c \
1175 ./tainted/tainted4.c \
1176 ./tainted/tainted5.c \
1177 ./tainted/taintedimplicit.c \
1178 ./tainted/taintedmerge.c \
1179 ./tainted/taintedx.c \
1181 ./tclauses/globals.c \
1183 ./tclauses/modifies.c \
1184 ./tclauses/struct.c \
1185 ./tclauses/undef.c \
1186 ./tests2.2/arbints.c \
1187 ./tests2.2/arrayfcn.c \
1188 ./tests2.2/booldef.c \
1189 ./tests2.2/boolenum.c \
1190 ./tests2.2/boolops.c \
1191 ./tests2.2/break.c \
1192 ./tests2.2/bstring.c \
1194 ./tests2.2/enumbool.c \
1195 ./tests2.2/extension.c \
1196 ./tests2.2/libraries.c \
1197 ./tests2.2/modarray.c \
1198 ./tests2.2/nestext.c \
1199 ./tests2.2/offsetof.c \
1200 ./tests2.2/posix.c \
1201 ./tests2.2/realloc.c \
1203 ./tests2.2/sizeofarray.c \
1204 ./tests2.2/struct.c \
1205 ./tests2.2a/addassign.c \
1206 ./tests2.2a/arrayparam.c \
1207 ./tests2.2a/bitops.c \
1208 ./tests2.2a/boolcomp.c \
1209 ./tests2.2a/boolenum.c \
1210 ./tests2.2a/dobb.c \
1211 ./tests2.2a/duff.c \
1212 ./tests2.2a/erik.c \
1213 ./tests2.2a/floatdouble.c \
1214 ./tests2.2a/florian.c \
1215 ./tests2.2a/fred.c \
1216 ./tests2.2a/isalpha.c \
1217 ./tests2.2a/notreached.c \
1218 ./tests2.2a/obviousloop.c \
1219 ./tests2.2a/popik.c \
1220 ./tests2.2a/sizeof.c \
1221 ./tests2.2a/toralf.c \
1222 ./tests2.4/subdir/main.c \
1223 ./tests2.4/alignof.c \
1224 ./tests2.4/array.c \
1225 ./tests2.4/bitfields.c \
1230 ./tests2.4/cpptest.c \
1231 ./tests2.4/driverstub.c \
1232 ./tests2.4/duffs.c \
1233 ./tests2.4/emptycase.c \
1234 ./tests2.4/enumtest.c \
1235 ./tests2.4/error.c \
1237 ./tests2.4/flagequal.c \
1238 ./tests2.4/forward.c \
1240 ./tests2.4/hexconstants.c \
1241 ./tests2.4/innercomment.c \
1242 ./tests2.4/komazi.c \
1243 ./tests2.4/longlong.c \
1245 ./tests2.4/nothing.c \
1246 ./tests2.4/offsetof.c \
1247 ./tests2.4/print.c \
1249 ./tests2.4/syncomment.c \
1250 ./tests2.4/syslog.c \
1251 ./tests2.4/test0.c \
1252 ./tests2.4/test1.c \
1253 ./tests2.4/test2.c \
1254 ./tests2.4/timecard.c \
1255 ./tests2.4/toothman.c \
1256 ./tests2.4/ulrich.c \
1257 ./tests2.5/badcomment.c \
1258 ./tests2.5/boolbad.c \
1259 ./tests2.5/boolt.c \
1260 ./tests2.5/booltest.c \
1261 ./tests2.5/dummyfile.c \
1263 ./tests2.5/immutable.c \
1264 ./tests2.5/impabsmodule.c \
1265 ./tests2.5/literals.c \
1266 ./tests2.5/quals.c \
1268 ./tests2.5/testalt.c \
1269 ./tests2.5/testimmutable.c \
1270 ./tests2.5/uconstants.c \
1272 ./warnuse/warnflags.c \
1273 ./warnuse/warngets.c \
1274 ./warnuse/warnuse.c \
1275 ./moreBufferTests2/unknownsize.c \
1276 ./moreBufferTests2/arrayConstExpr.c \
1281 ansireserved.expect \
1286 branchstate.expect \
1293 commentchar.expect \
1294 compdestroy.expect \
1296 controldepth.expect \
1299 czechoslovaknames.expect \
1315 funcpointer.expect \
1317 globalbufferannotation.expect \
1320 impabstract.expect \
1328 lintcomments.expect \
1330 longconstants.expect \
1340 mongoincludes.expect \
1341 moreBufferTests.expect \
1342 moreBufferTests2.expect \
1347 nullterminatedtest.expect \
1352 postnotnull.expect \
1360 repexpose.lh.expect \
1363 simplebufferConstraintTests.expect \
1366 slovaknames.expect \
1367 specclauses.expect \
1370 staticarray.expect \
1373 structassign.expect \
1385 unreachable.expect \
1386 unsignedcompare.expect \
1425 ./metastate/global.h \
1426 ./suppressfile/test.h \
1427 ./tests2.2/Makefile.hide \
1428 ./tests2.2/mbool.h \
1429 ./tests2.4/forward.h \
1431 ./tests2.4/timecard.h \
1433 ./tests2.5/bimbim.h \
1434 ./tests2.5/immutable.h \
1435 ./tests2.5/impabsmodule.h \
1436 ./tests2.5/socket.h \
1437 ./Makefile-test.os2 \
1441 ./conditions/Makefile \
1444 ./globalbufferannotation/Makefile \
1446 ./mergestate/Makefile \
1447 ./metastate/Makefile \
1448 ./moreBufferTests/Makefile \
1449 ./simplebufferConstraintTests/Makefile \
1451 ./tainted/Makefile \
1453 ./tests2.2/Makefile.hide \
1454 ./tests2.2/Makefile \
1455 ./tests2.2/Makefile-tests2.2.os2 \
1456 ./tests2.2a/Makefile \
1457 ./tests2.4/Makefile \
1458 ./tests2.4/Makefile-tests2.4.os2 \
1459 ./tests2.5/Makefile \
1460 ./warnuse/Makefile \
1463 ./moreBufferTests2/Makefile \
1464 ./fileio/eof.mts ./fileio/file.mts ./fileio/filerw.mts ./mergestate/tainted.mts ./mergestate/taintednm.mts ./metastate/file.mts ./metastate/nullterminated.mts ./metastate/sockets.mts ./tainted/tainted-bad.mts ./tainted/tainted.mts ./fileio/file.xh ./fileio/filerw.xh ./mergestate/tainted.xh ./mergestate/taintednm.xh ./metastate/file.xh ./tainted/tainted.xh \
1465 alias alttypes ansireserved \
1466 db2.old-expect outglob outparam preds union.pp warnuse.old-expect \
1467 ./tests2.5/badcomment ./tests2.5/boolbad ./tests2.5/booltest ./tests2.5/uconstants