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
9 ## Set up the splint commands
11 SPLINT = $(top_builddir)/src/splint$(EXEEXT)
17 ### This is horrible! Can't we make top_builddir absolute?
18 SPLINTNEST = ../$(top_builddir)/src/splint$(EXEEXT)
20 SPLINTPNEST = @$(SPLINTNEST) -nof
21 SPLINTP = @$(SPLINT) -nof
23 # Make sure .splintrc files are not used so test results do not
24 # depend on local settings.
25 SPLINTRN = $(SPLINTP) -hints -booltype "bool"
26 SPLINTR = $(SPLINTRN) -exportlocal +debugfcnconstraint
28 SPLINTRNNEST = $(SPLINTPNEST) -hints -booltype "bool"
29 SPLINTRNEST = $(SPLINTRNNEST) -exportlocal +debugfcnconstraint
32 ### rcfiles not included becuase file names will not match exactly
37 abstptr abstract alias alttypes ansireserved argorder \
38 args blocks break cases cast charlit clauses commentchar compdestroy \
39 constannot controldepth csyntax czechnames czechoslovaknames deadparam \
40 decl enum exports external fields flags forbody format freearray \
41 funcpointer functionmacro glob globals impabstract info init inparam internal iter keep libs \
42 linked lintcomments list loopexec \
43 macros macrosef merge mergenull modifies modtest moduncon \
44 mongoincludes mystrncat noeffect null observer oldstyle outglob outparam \
45 postnotnull preds prefixes printflike rc refcounts release repexpose \
46 returned sharing slovaknames \
48 special stack staticarray strings \
49 structassign typequals ud ulstypes union unioninit unreachable unsignedcompare \
50 unused ullint utypes void widestrings
51 UNITEXPECTS = $(addsuffix .expect, $(UNITTESTS))
53 SUBDIRTESTS = metastate mergestate tainted fileio \
54 simplebufferConstraintTests moreBufferTests moreBufferTests2 globalbufferannotation \
56 ### warnuse doesn't work yet!
57 SUBDIRTESTS += tests2.2
58 SUBDIRTESTS += tests2.4
59 SUBDIRTESTS += tests2.5
60 SUBDIRTESTS += db1 db2 db3
62 SPLINTTESTS = $(UNITTESTS) $(SUBDIRTESTS)
71 -$(SPLINTP) -help version
76 -@LARCH_PATH=/dev/null; $(SPLINT) -nof empty.lcl
79 -@$(SPLINTP) +boolint +boolint
80 -@$(SPLINTP) -help flags alpha
81 -@$(SPLINTP) -help flags all
85 -rm -f *~ #*# *.o *.lcs a.out
86 -cd db1; $(MAKE) clean
87 -cd db2; $(MAKE) clean
88 -cd db3; $(MAKE) clean
90 ## All tests need splint to be built
92 $(SPLINTTESTS): $(SPLINT)
95 cd $(top_builddir)/src; $(MAKE)
97 ## This is a kludgey way of processing the output to make it match exactly
98 ## The last matcher is the most annoying, as it can differ (the first two are
99 ## pretty much fixed); usually, you'll have 'make[1]:', but on DOS it is
100 ## 'make.exe[1]:' (it might even be 'c:/path/to/make.exe[1]:', but that's
102 ## The tests should really be re-done as shell-scripts or something... maybe
103 ## autotest could be used once it's finished.
105 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="
110 $(MAKE) $* |& $(CLEANOUTPUT) >$*.expect && cat $*.expect
113 $(MAKE) $* |& $(CLEANOUTPUT) >$*.out && diff $*.expect $*.out
115 #drl temporally take this out.
118 # @echo "Saving old expects..."; \
119 # cat *.expect >expects-`date +"%y-%m-%d-%H"`
120 # @for TEST in $(UNITTESTS) $(INTEGTESTS); do \
121 # echo "Making $$TEST.expect..."; \
122 # $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.expect; \
123 # cat $$TEST.expect; \
128 @for TEST in $(QUICKTESTS); do \
129 echo "Checking $$TEST..."; \
130 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
131 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
132 echo "*** FAIL ***"; \
137 @echo "Testing $(PACKAGE) $(VERSION)..."
139 @echo "Version Info:"
140 @$(SPLINTP) -help version
141 @$(SPLINTP) -help vars
145 @for TEST in $(SPLINTTESTS); do \
146 echo "Checking $$TEST..."; \
147 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
148 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
149 echo "*** FAIL ***"; \
152 ### Rules for tests start here
156 -$(SPLINTR) abstptr -expect 9
157 -$(SPLINTR) abstptr +voidabstract -expect 6
161 -$(SPLINTR) abst_t.lcl commentcmd.c -expect 15
166 -$(SPLINTR) mut alias +globalias -expect 19
167 -$(SPLINTR) mut alias2 +globalias -expect 17
168 -$(SPLINTR) +lh alias3 -expect 14
169 -$(SPLINTR) +lh alias4 +boolint
170 -$(SPLINTR) alias4 -pred +retalias -expect 6
171 -$(SPLINTR) +lh alias5 +memchecks -null -specundef -expect 5
175 -$(SPLINTR) alttypes.c -expect 2
178 ### evans 2001-06-07 - updated nameCheck.c to reflect C9X.
179 ### Reports one new errors for ansireserved.c - wctomb is bad even as a local
180 ### variable (could be a macro?)
181 ### Reports 3 additional errors for +checks; no longer suppresses name errors
182 ### in the presense of other errors.
187 -$(SPLINTR) ansireserved.c +ansireserved -nolib -expect 9
188 -$(SPLINTR) ansireserved.c +ansireserved +ansireservedlocal -nolib -expect 11
189 -$(SPLINTRN) ansireserved.c +checks -exportlocal -exportheadervar -exportheader -expect 12
190 -$(SPLINTR) ansireserved2.c +ansireserved -expect 1
194 -$(SPLINTR) argorder.c -expect 4
195 -$(SPLINTR) argorder2 -expect 5
196 -$(SPLINTR) argorder3.c -expect 8
197 -$(SPLINTR) argorder4 -expect 9
198 -$(SPLINTR) argorder4 -evalorder -expect 1
199 -$(SPLINTR) argorder5.c +evalorderuncon -expect 3
203 -$(SPLINTR) args -noeffect -expect 12
207 -$(SPLINTR) blocks.c -expect 4
208 -$(SPLINTR) blocks.c +ifblock +elseifcomplete -expect 7
209 -$(SPLINTR) blocks.c -ifempty +whileempty +whileblock -expect 3
210 -$(SPLINTR) blocks.c -ifempty +forempty +forblock -expect 3
211 -$(SPLINTR) blocks.c +allempty -expect 6
212 -$(SPLINTRN) blocks.c +strict -exportlocal +partial -exportheader -expect 11
216 -$(SPLINTR) break.c -expect 4
217 -$(SPLINTR) break.c +deepbreak -expect 6
218 -$(SPLINTR) break.c +deepbreak -looploopbreak -expect 5
222 -$(SPLINTR) cases.c -expect 5
223 -$(SPLINTR) cases2.c -expect 2
224 -$(SPLINTRN) cases2.c +checks -exportlocal -exportheader -expect 3
225 -$(SPLINTRN) cases2.c +checks -exportlocal -exportheader -branchstate -expect 3
229 -$(SPLINTR) cast -accessmodule -expect 20
230 -$(SPLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
232 ### Two addition errors detected with 2.5 with -numliteral.
236 -$(SPLINTR) +hints charlit.c -expect 4
237 -$(SPLINTR) +hints -numliteral charlit.c -expect 6
238 -$(SPLINTR) +hints charlit.c +charintliteral +ignoresigns
242 -$(SPLINTR) clauses.c +memchecks -expect 4
243 -$(SPLINTR) clauses2.c +memchecks
244 -$(SPLINTR) clauses3.c +memchecks -expect 2
245 -$(SPLINTR) clauses3.c +memchecks +unixlib -expect 3
249 -$(SPLINTR) commentchar.c -expect 4
250 -$(SPLINTR) -commentchar '#' commentchar.c -expect 4
254 -$(SPLINTR) +hints -controlnestdepth 2 controldepth.c -expect 2
255 -$(SPLINTR) +hints -controlnestdepth 1 controldepth.c -expect 2
259 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader -expect 1
260 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy -expect 2
261 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy +strictusereleased -expect 3
262 -$(SPLINTRN) compdestroy.c +strict +partial -exportheader -expect 3
266 ${SPLINTRN} constannot.c +arraybounds -exportlocal -expect 2
270 -$(SPLINTR) +quiet -incondefs csyntax.c -expect 1
271 -$(SPLINTR) +quiet csyntax2.c -expect 2
272 -$(SPLINTR) +quiet csyntax3.c -expect 1
273 -$(SPLINTR) +quiet -incondefs csyntax4.c
274 -$(SPLINTR) +quiet csyntax5.c
275 -$(SPLINTR) +quiet csyntax6.c
276 -$(SPLINTR) +quiet csyntax7.c
277 -$(SPLINTR) +quiet csyntax8.c
278 -$(SPLINTR) +quiet csyntax9.c
279 -$(SPLINTR) +quiet csyntax10.c
280 -$(SPLINTR) +quiet csyntax11.c
281 -$(SPLINTR) +quiet csyntax12.c
282 -$(SPLINTR) +quiet csyntax13.c -expect 1
283 -$(SPLINTR) +quiet csyntax14.c
284 -$(SPLINTR) +quiet csyntax15.c
285 -$(SPLINTR) +quiet csyntax16.c -expect 2
286 -$(SPLINTR) +quiet csyntax17.c -expect 3
290 -$(SPLINTR) czechnames.c
291 -$(SPLINTR) +hints +czech czechnames.c -expect 2
292 -$(SPLINTR) +hints +czech -czechvars czechnames.c -expect 1
293 -$(SPLINTR) +hints +czech -accessczech czechnames.c -expect 6
295 .PHONY: czechoslovaknames
297 -$(SPLINTR) +hints +czechoslovak czechnames.c -expect 1
298 -$(SPLINTR) +hints +czechoslovak slovaknames.c -expect 1
299 -$(SPLINTR) +hints +czechoslovak +slovakvars slovaknames.c -expect 2
302 ### deadparam added 2001-05-27
307 ${SPLINTR} deadparam.c -expect 3
310 # Was expect 3 before 2.4. Earlier versions did not handle implicit
311 # function pointers correctly.
316 -$(SPLINTR) decl.c -expect 2
317 -$(SPLINTRN) decl.c +strict -exportlocal -expect 5
318 -$(SPLINTR) decl2 -expect 4
322 -$(SPLINTR) enum -expect 16
323 -$(SPLINTR) enum -misscase -expect 14
327 -$(SPLINTR) exports.c +exporttype +exportvar +exportfcn +topuse +typeuse -expect 6
328 -$(SPLINTR) exports.c +exportany -expect 3
329 -$(SPLINTR) exports.c
333 -$(SPLINTR) external.c +partial
334 -$(SPLINTR) external.c +partial +distinctexternalnames -expect 2
335 -$(SPLINTR) external.c -nolib +partial -externalnamelength 3 -expect 3
336 -$(SPLINTR) external.c -nolib +partial -externalnamelength 3 +externalnamecaseinsensitive -expect 3
337 -$(SPLINTR) external.c +partial -externalnamelength 3 -expect 4
341 -$(SPLINTR) fields.c +memchecks -expect 6
342 -$(SPLINTR) fields2.c +memchecks -expect 5
343 -$(SPLINTR) fields3.c +memchecks
347 -$(SPLINTR) flags.c -expect 8
348 -$(SPLINTR) +nocomments flags.c -expect 2
354 ${SPLINTR} forbody.c -expect 2
359 ${SPLINTR} format.c -expect 3
360 ${SPLINTR} format.c -formatconst
362 # two new errors (invalid lhs)
366 -$(SPLINTR) +memchecks +noparams funcpointer.c -expect 18
368 .PHONY: functionmacro
370 -$(SPLINTR) functionmacro.c -expect 2
374 -$(SPLINTR) glob -expect 4
375 -$(SPLINTR) glob -globuse -expect 3
376 -$(SPLINTR) glob +globunspec -expect 6
380 -$(SPLINTR) -modifies globals.c -expect 5
381 -$(SPLINTR) -modifies globals.c +allglobals -expect 6
382 -$(SPLINTR) -modifies globals.c +impcheckedglobals -expect 6
383 -$(SPLINTR) -modifies globals.c -globals -checkstrictglobals -expect 2
384 -$(SPLINTR) -modifies globals.c +globunspec -expect 6
385 -$(SPLINTR) -modifies globals.c +globunspec +allglobals -expect 8
390 -$(SPLINTR) -accessmodule impabstract.c
391 -$(SPLINTR) -accessmodule +hints +impabstract impabstract.c -expect 2
392 -$(SPLINTR) -accessmodule +hints +impabstract impabstract -expect 4
395 ### evans 2001-12-30: Handle unrecognized pre-processor directives
396 ### (Reported by Pierluigi Sanzani)
400 ${SPLINTR} info.c -expect 4
402 ### evans 2001-10-14: Expected errors updated
405 -$(SPLINTR) init.c -expect 14
406 -$(SPLINTRN) init.c +checks -exportlocal -exportheadervar -expect 17
411 -$(SPLINTR) inparam.c -expect 2
412 -$(SPLINTR) +impouts inparam.c -expect 1
416 -$(SPLINTR) internal.c -expect 1
417 -$(SPLINTR) internal.c +distinctinternalnames -expect 2
418 -$(SPLINTR) internal.c -internalnamelen 28 -expect 3
419 -$(SPLINTR) internal.c +internalnamecaseinsensitive -expect 3
420 -$(SPLINTR) internal.c +internalnamecaseinsensitive +internalnamelookalike -expect 11
424 ### 2001-06-06: Error message for iter.lcl:3,6 fixed to iter.lcl:3:6
429 -$(SPLINTR) iter -expect 14 -lclexpect 1
430 -$(SPLINTR) iter2.c -expect 12
434 -$(SPLINTR) keep.c +memchecks -expect 6
437 ### 2001-05-22: 2 new errors found (fixed spec of signal)
438 ### 2001-05-30: 3 new errors found (formatconst)
442 -$(SPLINTR) libs.c +longunsignedunsignedintegral -expect 18
443 -$(SPLINTR) libs.c -expect 22
444 -$(SPLINTR) libs.c +globunspec +modunspec -expect 25
445 -$(SPLINTR) libs.c +strictlib +globunspec +modunspec -expect 42
449 -$(SPLINTR) lintcomments.c -expect 5
450 -$(SPLINTR) lintcomments.c -warnlintcomments -expect 1
451 -$(SPLINTR) lintcomments.c -lintcomments -expect 4
455 -$(SPLINTR) list.c -expect 3
458 ### 2002-01-01: Added test case for obvious loop execution.
463 -$(SPLINTR) loopexec.c -expect 1
464 -$(SPLINTR) loopexec.c -obviousloopexec -expect 3
469 -$(SPLINTR) macros -expect 17
470 -$(SPLINTR) macros.c +allmacros -expect 34
471 -$(SPLINTR) macros.c +fcnmacros -expect 31
476 -$(SPLINTR) macrosef -expect 4
477 -$(SPLINTR) macrosef.c +allmacros -expect 3
478 -$(SPLINTR) macrosef.c +allmacros +sefuncon -expect 4
482 -$(SPLINTRN) merge.c +checks -exportlocal -exportheadervar -exportheader -expect 3
486 -$(SPLINTRN) mergenull.c
490 -$(SPLINTR) modifies.c modclient.c +impcheckedstatics +mustmod -expect 7
494 -$(SPLINTR) modtest -expect 10
495 -$(SPLINTR) modtest +modunspec -expect 13
496 -$(SPLINTR) modtest +mustmod -expect 14
500 -$(SPLINTR) moduncon.c +moduncon -memchecks -expect 4
501 -$(SPLINTRN) moduncon.c +strict -exportlocal -expect 22
503 .PHONY: mongoincludes
505 -$(SPLINTR) mongoincludes.c -includenest 1 -expect 19
506 -$(SPLINTR) mongoincludes.c -includenest 2 -expect 10
507 -$(SPLINTR) mongoincludes.c -includenest 3 -expect 4
508 -$(SPLINTR) mongoincludes.c -includenest 4 -expect 1
509 -$(SPLINTR) mongoincludes.c -includenest 5 -expect 0
513 -$(SPLINTR) mystrncat.c +arraybounds +arrayboundsread -expect 4
517 ${SPLINT} -nof noeffect.c +allmacros +checks -expect 3
520 ### 2002-01-01: null1.c: expect increased to 15 because out must be defined
521 ### checking detects one new error
526 -$(SPLINTR) null1.c -expect 15
527 -$(SPLINTR) null1.c -null -mustdefine -expect 4
528 -$(SPLINTR) null2.c -expect 11
529 -$(SPLINTR) null3.c -expect 15
530 -$(SPLINTR) null3.c -warnunixlib +unixlib -expect 16
531 -$(SPLINTR) null4.c -expect 1
532 -$(SPLINTR) null5.c -expect 4
533 -$(SPLINTR) null6 -expect 4
534 -$(SPLINTR) +quiet null6.lcl -dump null6
535 -$(SPLINTR) null6.c -load null6 -expect 4
537 ### Added for 3.0 (bugs reported by Kevin Broady)
541 -$(SPLINTR) nullret.c -expect 2
542 -$(SPLINTR) -nullret nullret.c -expect 1
546 -$(SPLINTR) nullassign.c -expect 2
547 -$(SPLINTR) -nullassign nullassign.c -expect 1
551 # Before 2.4, expected one more because error was reported both as
552 # dependent and observer.
557 -$(SPLINTRN) observer +checks -exportlocal -exportheader -expect 9
558 -$(SPLINTRN) observer.c +checks -exportlocal -exportheader -expect 8
559 -$(SPLINTR) observer.c -expect 7
563 -$(SPLINTR) oldstyle -expect 3
567 -$(SPLINTR) outglob -expect 10
571 -$(SPLINTR) outparam -expect 12
573 ### evans 2001-08-26: postnotnull new
577 ${SPLINTR} postnotnull.c -expect 1
579 # Four new +fcnuse errors for -strict (evans 2001-07-22)
584 -$(SPLINTR) +hints preds.c -expect 6
585 -$(SPLINTRN) +hints preds.c -weak -expect 1
586 -$(SPLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 12
590 -$(SPLINTR) prefixes.c +partial
591 -$(SPLINTRN) prefixes.c +allmacros +checks -exportlocal +partial -exportheader -exportheadervar -expect 4
592 -$(SPLINTR) prefixes.c -typeprefix "T" -expect 2
593 -$(SPLINTR) prefixes.c -typeprefix "^" -expect 1
594 -$(SPLINTR) prefixes.c -typeprefix "^*" -expect 2
595 -$(SPLINTR) prefixes.c -typeprefix "^%*" -expect 2
596 -$(SPLINTR) prefixes.c -typeprefix "^~*" -expect 2
597 -$(SPLINTR) prefixes.c -typeprefix "^" +typeprefixexclude -expect 7
598 -$(SPLINTR) prefixes.c -filestaticprefix "^^" -expect 4
599 -$(SPLINTR) prefixes.c -filestaticprefix "^#" -expect 5
600 -$(SPLINTR) prefixes.c -filestaticprefix "^?&x" -expect 5
601 -$(SPLINTR) prefixes.c -globalprefix "G" -expect 1
602 -$(SPLINTR) prefixes.c -globalprefix "&G?_^" -expect 1
603 -$(SPLINTR) prefixes.c -externalprefix "G" -expect 5
604 -$(SPLINTR) prefixes.c -typeprefix "T" -externalprefix "G" -expect 4
605 -$(SPLINTR) prefixes.c -localprefix "?*" +localprefixexclude -expect 13
609 -$(SPLINTR) printflike.c -expect 6
610 -$(SPLINTR) printflike.c -warnlintcomments -expect 5
614 -$(SPLINTR) -DMYSTERY='"a flag\"wicked cool"' rc.c -expect 1
615 -$(SPLINTR) -DMYSTERY=12 rc.c -expect 1
616 -$(SPLINTR) -f rc1.splintrc rc.c -expect 1
617 -$(SPLINTR) -UMYSTERY -f rc1.splintrc rc.c -expect 1
618 -$(SPLINTR) -f rc3.splintrc rc.c -expect 1
622 cd rcfiles; ${MAKE} SPLINT="-$(SPLINTPNEST)"
626 -$(SPLINTR) refcounts.c -expect 7
630 -$(SPLINTR) release.c +memchecks -expect 1
634 -$(SPLINTR) +lh repexpose +memchecks -expect 12
635 -$(SPLINTR) repexpose +memchecks +retalias -expect 15
636 -$(SPLINTRN) repexpose +checks -exportlocal -expect 27
638 ### returned added 2001-05-27
639 ### (Bug discovered checking splint sources.)
643 ${SPLINTR} returned.c -expect 1
647 -$(SPLINTR) sharing1.c -expect 21
648 -$(SPLINTR) sharing3.c -expect 3
649 -$(SPLINTR) sharing4.c -expect 13
650 -$(SPLINTR) sharing4.c -paramimptemp -expect 12
651 -$(SPLINTR) sharing5.c -expect 6
655 -$(SPLINTR) +hints slovaknames.c -expect 1
656 -$(SPLINTR) +hints slovaknames.c +accessslovak
657 -$(SPLINTR) +hints +slovak slovaknames.c -expect 3
658 -$(SPLINTR) +hints +slovak -slovakvars slovaknames.c -expect 2
659 -$(SPLINTR) +hints +slovak -accessslovak slovaknames.c -expect 7
663 -$(SPLINTR) specclauses.c -expect 6
664 -$(SPLINTR) specclauses2.c -expect 8
665 -$(SPLINTR) specclauses3.c -expect 6
666 -$(SPLINTR) specclauses4.c -expect 3
667 -$(SPLINTR) specclauses5.c -expect 3
671 -$(SPLINTR) specclauses.c -expect 6
675 -$(SPLINTR) specclauses2.c -expect 8
679 -$(SPLINTR) specclauses3.c -expect 6
683 -$(SPLINTR) specclauses4.c -expect 3
687 -$(SPLINTR) specclauses5.c -expect 3
691 -$(SPLINTR) special -expect 20
692 -$(SPLINTR) special -relaxquals -expect 22
696 -$(SPLINTR) stack.c -expect 5
697 -$(SPLINTR) stack.c -stackref
701 -$(SPLINTR) staticarray.c -expect 3
705 -$(SPLINTR) strings.c -expect 3
706 -$(SPLINTR) -readonlystrings -expect 1 strings.c
707 -$(SPLINTR) +modobserverstrict -maintype -expect 4 strings.c
711 -$(SPLINTR) structassign.c -expect 4
715 -$(SPLINTR) typequals.c tq.lcl -expect 5
716 -$(SPLINTR) typequals.c -expect 2
720 -$(SPLINTR) ud.c -expect 9
721 -$(SPLINTR) ud2 -specundef -expect 3
725 -$(SPLINTR) ulstypes.c -expect 8
726 -$(SPLINTR) ulstypes.c +ignorequals
727 -$(SPLINTRN) ulstypes.c +strict -exportheader -exportheadervar -expect 28
729 # 3 more detected with version 2.5 (change in -numliteral setting)
733 -$(SPLINTR) +memchecks union.c -expect 8
736 ### Added 2001-12-30: fixed union initializer checking in response to
737 ### bug report from Jim Zelenka.
742 -$(SPLINTR) unioninit.c -expect 2
746 -$(SPLINTR) unreachable.c -expect 5
747 -$(SPLINTR) -unreachable unreachable.c -expect 2
748 -$(SPLINTR) switch.c -expect 4
750 .PHONY: unsignedcompare
752 ${SPLINTR} +posixlib unsignedcompare.c -expect 4
756 ### 2001-06-08 evans: 2 new errors after fixing ansireserved name checks
761 -$(SPLINTRN) unused.c +checks -exportlocal -expect 5
762 -$(SPLINTRN) unused.c +checks -exportlocal +topuse -expect 8
765 ### 2001-06-10: Provided by Jim Zalenka
770 ${SPLINTRN} ullint.c -expect 5
771 ${SPLINTRN} ullint.c +charint +charintliteral -expect 2
774 ### 2001-12-30: Poor warnings reported by Peter Deutsch
779 ${SPLINTRN} utypes.c -expect 6
785 ${SPLINTRN} void.c -expect 2
788 ### 2001-12-30: Problems with wide character strings reported by Nelson Beebe
793 ${SPLINTRN} widestrings.c -expect 2
801 ${SPLINTR} linked.c -expect 4
802 ${SPLINTR} linked2.c -expect 3
803 ${SPLINTR} linked3.c -expect 5
804 ${SPLINTR} linked4.c -expect 6
805 ${SPLINTR} linked5.c -expect 4
806 ${SPLINTR} linked6.c -expect 4
810 ${SPLINTR} freearray.c -expect 1
814 -$(SPLINTR) +arraybounds +arrayboundsread sizeof.c -expect 1
818 -$(SPLINTR) +arraybounds +arrayboundsread buffertest1.c -expect 5
825 ## db2: 2 errors are no longer reported, since eref is immutable.
826 ## Need to clarify what it means for an object to be immutable;
827 ## there should be 2 types with different storage requirements.
829 .PHONY: $(SUBDIRTESTS)
831 cd $@; $(MAKE) SPLINT="$(SPLINTRNNEST)"
833 #drl 11/29/2001 This is a very ugly hack to get make dist to work
834 EXTRA_DIST = ./abst_t.lcl ./abst_t.lcs \
835 ./abstptr.lcl ./abstptr.lcs \
836 ./alias.lcl ./alias.lcs \
837 ./alias2.lcl ./alias2.lcs \
908 ./repexpose.lh.expect \
925 ./globalbufferannotation/.splintrc \
928 ./tests2.2/bool.lcl \
929 ./tests2.2/bool.lcs \
930 ./tests2.2/libraries.lcd \
931 ./tests2.2/obsolete.lcd \
932 ./tests2.2/oldversion.lcd \
933 ./tests2.4/subdir/main.lcl \
934 ./tests2.4/subdir/main.lcs \
935 ./tests2.5/newlint.lcd \
936 ./warnuse/warnuse.lcd \
996 ./czechoslovaknames.c \
1112 ./unsignedcompare.c \
1115 ./conditions/miroslaw.c \
1116 ./conditions/releases.c \
1118 ./fileio/filebranch.c \
1121 ./globalbufferannotation/globalvariable.c \
1122 ./maxset/maxsetannotations.c \
1123 ./maxset/maxsetnoannotations.c \
1124 ./mergestate/taintednm.c \
1125 ./metastate/file.c \
1126 ./metastate/file1.c \
1127 ./metastate/file2.c \
1128 ./metastate/file3.c \
1129 ./metastate/file4.c \
1130 ./metastate/file5.c \
1131 ./metastate/file6.c \
1132 ./metastate/file7.c \
1133 ./metastate/filebad.c \
1134 ./metastate/global.c \
1135 ./metastate/nullbranch.c \
1136 ./metastate/nullbranch2.c \
1137 ./metastate/nullret.c \
1139 ./metastate/sockets.c \
1140 ./metastate/sockets2.c \
1141 ./metastate/struct.c \
1142 ./metastate/test.c \
1143 ./metastate/voidptr.c \
1144 ./moreBufferTests/initialization.c \
1145 ./moreBufferTests/simplifyTest.c \
1146 ./moreBufferTests/strncatNotReallyGood.c \
1147 ./moreBufferTests/strncatReallyGood.c \
1148 ./moreBufferTests/strrchr.c \
1149 ./moreBufferTests/unrecogCall.c \
1150 ./nullterminatedtest/buggy1.c \
1151 ./nullterminatedtest/buggy_support1.c \
1152 ./nullterminatedtest/buggy_support_fmakeword.c \
1153 ./nullterminatedtest/test1.c \
1154 ./nullterminatedtest/test3.c \
1155 ./simplebufferConstraintTests/m.c \
1156 ./simplebufferConstraintTests/sizeof.c \
1157 ./simplebufferConstraintTests/test3.c \
1158 ./simplebufferConstraintTests/test7.c \
1159 ./sizeoftest/sizeof.c \
1161 ./suppressfile/test.c \
1162 ./tainted/sprintf.c \
1164 ./tainted/tainted.c \
1165 ./tainted/tainted2.c \
1166 ./tainted/tainted3.c \
1167 ./tainted/tainted4.c \
1168 ./tainted/tainted5.c \
1169 ./tainted/taintedimplicit.c \
1170 ./tainted/taintedmerge.c \
1171 ./tainted/taintedx.c \
1173 ./tclauses/globals.c \
1175 ./tclauses/modifies.c \
1176 ./tclauses/struct.c \
1177 ./tclauses/undef.c \
1178 ./tests2.2/arbints.c \
1179 ./tests2.2/arrayfcn.c \
1180 ./tests2.2/booldef.c \
1181 ./tests2.2/boolenum.c \
1182 ./tests2.2/boolops.c \
1183 ./tests2.2/break.c \
1184 ./tests2.2/bstring.c \
1186 ./tests2.2/enumbool.c \
1187 ./tests2.2/extension.c \
1188 ./tests2.2/libraries.c \
1189 ./tests2.2/modarray.c \
1190 ./tests2.2/nestext.c \
1191 ./tests2.2/offsetof.c \
1192 ./tests2.2/posix.c \
1193 ./tests2.2/realloc.c \
1195 ./tests2.2/sizeofarray.c \
1196 ./tests2.2/struct.c \
1197 ./tests2.2a/addassign.c \
1198 ./tests2.2a/arrayparam.c \
1199 ./tests2.2a/bitops.c \
1200 ./tests2.2a/boolcomp.c \
1201 ./tests2.2a/boolenum.c \
1202 ./tests2.2a/dobb.c \
1203 ./tests2.2a/duff.c \
1204 ./tests2.2a/erik.c \
1205 ./tests2.2a/floatdouble.c \
1206 ./tests2.2a/florian.c \
1207 ./tests2.2a/fred.c \
1208 ./tests2.2a/isalpha.c \
1209 ./tests2.2a/notreached.c \
1210 ./tests2.2a/obviousloop.c \
1211 ./tests2.2a/popik.c \
1212 ./tests2.2a/sizeof.c \
1213 ./tests2.2a/toralf.c \
1214 ./tests2.4/subdir/main.c \
1215 ./tests2.4/alignof.c \
1216 ./tests2.4/array.c \
1217 ./tests2.4/bitfields.c \
1222 ./tests2.4/cpptest.c \
1223 ./tests2.4/driverstub.c \
1224 ./tests2.4/duffs.c \
1225 ./tests2.4/emptycase.c \
1226 ./tests2.4/enumtest.c \
1227 ./tests2.4/error.c \
1229 ./tests2.4/flagequal.c \
1230 ./tests2.4/forward.c \
1232 ./tests2.4/hexconstants.c \
1233 ./tests2.4/innercomment.c \
1234 ./tests2.4/komazi.c \
1235 ./tests2.4/longlong.c \
1237 ./tests2.4/nothing.c \
1238 ./tests2.4/offsetof.c \
1239 ./tests2.4/print.c \
1241 ./tests2.4/syncomment.c \
1242 ./tests2.4/syslog.c \
1243 ./tests2.4/test0.c \
1244 ./tests2.4/test1.c \
1245 ./tests2.4/test2.c \
1246 ./tests2.4/timecard.c \
1247 ./tests2.4/toothman.c \
1248 ./tests2.4/ulrich.c \
1249 ./tests2.5/badcomment.c \
1250 ./tests2.5/boolbad.c \
1251 ./tests2.5/boolt.c \
1252 ./tests2.5/booltest.c \
1253 ./tests2.5/dummyfile.c \
1255 ./tests2.5/immutable.c \
1256 ./tests2.5/impabsmodule.c \
1257 ./tests2.5/literals.c \
1258 ./tests2.5/quals.c \
1260 ./tests2.5/testalt.c \
1261 ./tests2.5/testimmutable.c \
1262 ./tests2.5/uconstants.c \
1264 ./warnuse/warnflags.c \
1265 ./warnuse/warngets.c \
1266 ./warnuse/warnuse.c \
1267 ./moreBufferTests2/unknownsize.c \
1268 ./moreBufferTests2/arrayConstExpr.c \
1273 ansireserved.expect \
1278 branchstate.expect \
1285 commentchar.expect \
1286 compdestroy.expect \
1288 controldepth.expect \
1291 czechoslovaknames.expect \
1307 funcpointer.expect \
1309 globalbufferannotation.expect \
1312 impabstract.expect \
1320 lintcomments.expect \
1322 longconstants.expect \
1332 mongoincludes.expect \
1333 moreBufferTests.expect \
1334 moreBufferTests2.expect \
1339 nullterminatedtest.expect \
1344 postnotnull.expect \
1352 repexpose.lh.expect \
1355 simplebufferConstraintTests.expect \
1358 slovaknames.expect \
1359 specclauses.expect \
1362 staticarray.expect \
1365 structassign.expect \
1377 unreachable.expect \
1378 unsignedcompare.expect \
1417 ./metastate/global.h \
1418 ./suppressfile/test.h \
1419 ./tests2.2/Makefile.hide \
1420 ./tests2.2/mbool.h \
1421 ./tests2.4/forward.h \
1423 ./tests2.4/timecard.h \
1425 ./tests2.5/bimbim.h \
1426 ./tests2.5/immutable.h \
1427 ./tests2.5/impabsmodule.h \
1428 ./tests2.5/socket.h \
1429 ./Makefile-test.os2 \
1433 ./conditions/Makefile \
1436 ./globalbufferannotation/Makefile \
1438 ./mergestate/Makefile \
1439 ./metastate/Makefile \
1440 ./moreBufferTests/Makefile \
1441 ./simplebufferConstraintTests/Makefile \
1443 ./tainted/Makefile \
1445 ./tests2.2/Makefile.hide \
1446 ./tests2.2/Makefile \
1447 ./tests2.2/Makefile-tests2.2.os2 \
1448 ./tests2.2a/Makefile \
1449 ./tests2.4/Makefile \
1450 ./tests2.4/Makefile-tests2.4.os2 \
1451 ./tests2.5/Makefile \
1452 ./warnuse/Makefile \
1455 ./moreBufferTests2/Makefile \
1456 ./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 \
1457 alias alttypes ansireserved \
1458 db2.old-expect outglob outparam preds union.pp warnuse.old-expect \
1459 ./tests2.5/badcomment ./tests2.5/boolbad ./tests2.5/booltest ./tests2.5/uconstants