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 #drl 3/27/2002 get the test suit to print a warning when splint is built under /usr/
14 ## Set up the splint commands
16 SPLINT = $(top_builddir)/src/splint$(EXEEXT)
18 ### These are shell-specific
19 ## unexport LARCH_PATH
20 ## unexport LCLIMPORTDIR
22 ### This is horrible! Can't we make top_builddir absolute?
23 SPLINTNEST = ../$(top_builddir)/src/splint$(EXEEXT)
25 SPLINTPNEST = @$(SPLINTNEST) -nof
26 SPLINTP = @$(SPLINT) -nof
28 # Make sure .splintrc files are not used so test results do not
29 # depend on local settings.
30 SPLINTRN = $(SPLINTP) -hints -booltype "bool"
31 SPLINTR = $(SPLINTRN) -exportlocal +debugfcnconstraint
33 SPLINTRNNEST = $(SPLINTPNEST) -hints -booltype "bool"
34 SPLINTRNEST = $(SPLINTRNNEST) -exportlocal +debugfcnconstraint
37 ### rcfiles not included becuase file names will not match exactly
42 abstptr abstract alias alttypes ansireserved argorder \
43 args arraydims arrayinit arraylit blocks break cases cast charlit clauses commentchar compdestroy \
44 compoundliterals compoundstmt constannot controldepth csyntax czechnames czechoslovaknames deadparam \
45 decl divzero enum enumtag exports external fields flags forbody format freearray \
46 funcpointer functionmacro glob globals impabstract info init inparam internal iter keep libs \
47 linked lintcomments list loopexec looptesteffect \
48 macros macrosef merge mergenull modifies modtest moduncon \
49 mongoincludes mystrncat noeffect null observer oldstyle outglob outparam \
50 parentype postnotnull preds prefixes printflike rc refcounts release repexpose \
51 returned sharing shifts slovaknames \
53 special stack staticarray strings \
55 structassign typequals typeof ud ulstypes union unioninit \
56 unnamedsu unreachable unsignedcompare \
57 unused ullint utypes void widestrings
58 UNITEXPECTS = $(addsuffix .expect, $(UNITTESTS))
60 SUBDIRTESTS = metastate mergestate tainted fileio \
61 simplebufferConstraintTests moreBufferTests moreBufferTests2 globalbufferannotation \
62 maxset strchr for manual
64 ### warnuse doesn't work yet!
65 SUBDIRTESTS += tests2.2
66 SUBDIRTESTS += tests2.4
67 SUBDIRTESTS += tests2.5
68 SUBDIRTESTS += db1 db2 db3
70 SPLINTTESTS = $(UNITTESTS) $(SUBDIRTESTS)
79 -$(SPLINT) -help version
85 -@LARCH_PATH=/dev/null; $(SPLINT) -nof empty.lcl
88 -@$(SPLINTP) +boolint +boolint
89 -@$(SPLINT) -help flags alpha
92 #commenting these out for the release because they will almost always fail
93 #since the default will only fit one system
94 #Don't want to panic the user...
95 # -@$(SPLINT) -help flags all | $(GREP) -v "^larchpath <path> " | $(GREP) -v "^lclimportdir <directory> " | $(GREP) -v " Path argument. Default: " | $(GREP) -v " Directory argument. Default: " | $(GREP) -v " lclimportdir <directory> "
96 # -@$(SPLINT) -help flags full | $(GREP) -v "^larchpath <path> " | $(GREP) -v "^lclimportdir <directory> " | $(GREP) -v " Path argument. Default: " | $(GREP) -v " Directory argument. Default: " | $(GREP) -v " lclimportdir <directory> "
97 # -@$(SPLINT) -help flags manual | $(GREP) -v "^larchpath <path> " | $(GREP) -v "^lclimportdir <directory> " | $(GREP) -v " Path argument. Default: " | $(GREP) -v " Directory argument. Default: " | $(GREP) -v " lclimportdir <directory> "
99 #larch and lclimportdir have different hardcoded default paths so don't include the path in the output..
104 -rm -f *~ #*# *.o *.lcs a.out
105 -cd db1; $(MAKE) clean
106 -cd db2; $(MAKE) clean
107 -cd db3; $(MAKE) clean
109 ## All tests need splint to be built
111 $(SPLINTTESTS): $(SPLINT)
114 cd $(top_builddir)/src; $(MAKE)
116 ## This is a kludgey way of processing the output to make it match exactly
117 ## The last matcher is the most annoying, as it can differ (the first two are
118 ## pretty much fixed); usually, you'll have 'make[1]:', but on DOS it is
119 ## 'make.exe[1]:' (it might even be 'c:/path/to/make.exe[1]:', but that's
121 ## The tests should really be re-done as shell-scripts or something... maybe
122 ## autotest could be used once it's finished.
124 CLEANOUTPUT = $(GREP) -v "Splint 3." | $(GREP) -v "$(SPLINT)" | $(GREP) -v "^make.*\[[1-9]*\]:" | $(GREP) -v "^gmake.*\[[1-9]*\]:" | $(GREP) -v "^gmake -e" | $(GREP) -v "^make -e" |$(GREP) -v "config.status: creating test/Makefile" | $(GREP) -v "cd .. && " | $(GREP) -v "CONFIG_HEADERS=" | $(GREP) -v "CONFIG_FILES="
129 $(MAKE) $* |& $(CLEANOUTPUT) >$*.expect && cat $*.expect
132 $(MAKE) $* |& $(CLEANOUTPUT) >$*.out && diff $*.expect $*.out
134 #drl temporally take this out.
137 # @echo "Saving old expects..."; \
138 # cat *.expect >expects-`date +"%y-%m-%d-%H"`
139 # @for TEST in $(UNITTESTS) $(INTEGTESTS); do \
140 # echo "Making $$TEST.expect..."; \
141 # $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.expect; \
142 # cat $$TEST.expect; \
145 CheckSystemDir = (pwd | grep -q "/usr" && echo "Warning tests which not run correctly when splint is built in /usr or a subdirectory under /usr. Build splint in a different directory or disregard test failures." )
150 @for TEST in $(QUICKTESTS); do \
151 echo "Checking $$TEST..."; \
152 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
153 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
154 echo "*** FAIL ***"; \
159 @echo "Testing $(PACKAGE) $(VERSION)..."
161 @echo "Version Info:"
162 @$(SPLINT) -help version
163 @$(SPLINT) -help vars
167 @for TEST in $(SPLINTTESTS); do \
168 echo "Checking $$TEST..."; \
169 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
170 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
171 echo "*** FAIL ***"; \
174 ### Rules for tests start here
178 -$(SPLINTR) abstptr -expect 9
179 -$(SPLINTR) abstptr +voidabstract -expect 6
183 -$(SPLINTR) abst_t.lcl commentcmd.c -expect 15
188 -$(SPLINTR) mut alias +globalias -expect 19
189 -$(SPLINTR) mut alias2 +globalias -expect 17
190 -$(SPLINTR) +lh alias3 -expect 14
191 -$(SPLINTR) +lh alias4 +boolint
192 -$(SPLINTR) alias4 -pred +retalias -expect 6
193 -$(SPLINTR) +lh alias5 +memchecks -null -specundef -expect 5
197 -$(SPLINTR) alttypes.c -expect 2
200 ### evans 2001-06-07 - updated nameCheck.c to reflect C9X.
201 ### Reports one new errors for ansireserved.c - wctomb is bad even as a local
202 ### variable (could be a macro?)
203 ### Reports 3 additional errors for +checks; no longer suppresses name errors
204 ### in the presense of other errors.
209 -$(SPLINTR) ansireserved.c +ansireserved -nolib -expect 9
210 -$(SPLINTR) ansireserved.c +ansireserved +ansireservedlocal -nolib -expect 11
211 -$(SPLINTRN) ansireserved.c +checks -exportlocal -exportheadervar -exportheader -expect 12
212 -$(SPLINTR) ansireserved2.c +ansireserved -expect 1
216 -$(SPLINTR) argorder.c -expect 4
217 -$(SPLINTR) argorder2 -expect 5
218 -$(SPLINTR) argorder3.c -expect 8
219 -$(SPLINTR) argorder4 -expect 9
220 -$(SPLINTR) argorder4 -evalorder -expect 1
221 -$(SPLINTR) argorder5.c +evalorderuncon -expect 3
225 -$(SPLINTR) args -noeffect -expect 12
229 -$(SPLINTR) arraydims.c -varuse -expect 2
230 -$(SPLINTR) arraydims.c -initsize -varuse
234 -$(SPLINTR) arrayinit.c -expect 9
238 -$(SPLINTR) arraylit.c -expect 2
239 -$(SPLINTR) arraylit.c +stringliteralsmaller -expect 4
243 -$(SPLINTR) blocks.c -expect 4
244 -$(SPLINTR) blocks.c +ifblock +elseifcomplete -expect 7
245 -$(SPLINTR) blocks.c -ifempty +whileempty +whileblock -expect 3
246 -$(SPLINTR) blocks.c -ifempty +forempty +forblock -expect 3
247 -$(SPLINTR) blocks.c +allempty -expect 6
248 -$(SPLINTRN) blocks.c +strict -exportlocal +partial -exportheader -expect 11
252 -$(SPLINTR) break.c -expect 4
253 -$(SPLINTR) break.c +deepbreak -expect 6
254 -$(SPLINTR) break.c +deepbreak -looploopbreak -expect 5
258 -$(SPLINTR) cases.c -expect 5
259 -$(SPLINTR) cases2.c -expect 2
260 -$(SPLINTRN) cases2.c +checks -exportlocal -exportheader -expect 3
261 -$(SPLINTRN) cases2.c +checks -exportlocal -exportheader -branchstate -expect 3
265 -$(SPLINTR) cast -accessmodule -expect 20
266 -$(SPLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
268 ### Two addition errors detected with 2.5 with -numliteral.
272 -$(SPLINTR) +hints charlit.c -expect 4
273 -$(SPLINTR) +hints -numliteral charlit.c -expect 6
274 -$(SPLINTR) +hints charlit.c +charintliteral +ignoresigns
278 -$(SPLINTR) clauses.c +memchecks -expect 4
279 -$(SPLINTR) clauses2.c +memchecks
280 -$(SPLINTR) clauses3.c +memchecks -expect 2
281 -$(SPLINTR) clauses3.c +memchecks +unixlib -expect 3
285 -$(SPLINTR) commentchar.c -expect 4
286 -$(SPLINTR) -commentchar '#' commentchar.c -expect 4
290 -$(SPLINTR) +hints -controlnestdepth 2 controldepth.c -expect 2
291 -$(SPLINTR) +hints -controlnestdepth 1 controldepth.c -expect 2
295 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader -expect 1
296 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy -expect 2
297 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy +strictusereleased -expect 3
298 -$(SPLINTRN) compdestroy.c +strict +partial -exportheader -expect 3
300 .PHONY: compoundliterals
302 ${SPLINTRN} compoundliterals.c
306 ${SPLINTRN} compoundstmt.c -expect 3
310 ${SPLINTRN} constannot.c +boundswrite -exportlocal -expect 2
314 -$(SPLINTR) +quiet -incondefs csyntax.c -expect 1
315 -$(SPLINTR) +quiet csyntax2.c -expect 2
316 -$(SPLINTR) +quiet csyntax3.c -expect 1
317 -$(SPLINTR) +quiet -incondefs csyntax4.c
318 -$(SPLINTR) +quiet csyntax5.c
319 -$(SPLINTR) +quiet csyntax6.c
320 -$(SPLINTR) +quiet csyntax7.c
321 -$(SPLINTR) +quiet csyntax8.c
322 -$(SPLINTR) +quiet csyntax9.c
323 -$(SPLINTR) +quiet csyntax10.c
324 -$(SPLINTR) +quiet csyntax11.c
325 -$(SPLINTR) +quiet csyntax12.c
326 -$(SPLINTR) +quiet csyntax13.c -expect 1
327 -$(SPLINTR) +quiet csyntax14.c
328 -$(SPLINTR) +quiet csyntax15.c
329 -$(SPLINTR) +quiet csyntax16.c -expect 2
330 -$(SPLINTR) +quiet csyntax17.c -expect 3
334 -$(SPLINTR) czechnames.c
335 -$(SPLINTR) +hints +czech czechnames.c -expect 2
336 -$(SPLINTR) +hints +czech -czechvars czechnames.c -expect 1
337 -$(SPLINTR) +hints +czech -accessczech czechnames.c -expect 6
339 .PHONY: czechoslovaknames
341 -$(SPLINTR) +hints +czechoslovak czechnames.c -expect 1
342 -$(SPLINTR) +hints +czechoslovak slovaknames.c -expect 1
343 -$(SPLINTR) +hints +czechoslovak +slovakvars slovaknames.c -expect 2
346 ### deadparam added 2001-05-27
351 ${SPLINTR} deadparam.c -expect 3
354 # Was expect 3 before 2.4. Earlier versions did not handle implicit
355 # function pointers correctly.
360 -$(SPLINTR) decl.c -expect 2
361 -$(SPLINTRN) decl.c +strict -exportlocal -expect 5
362 -$(SPLINTR) decl2 -expect 4
366 -$(SPLINTR) divzero.c -varuse -expect 0
370 -$(SPLINTR) enum -expect 16
371 -$(SPLINTR) enum -misscase -expect 14
375 -$(SPLINTR) enumtag.c -expect 2
379 -$(SPLINTR) exports.c +exporttype +exportvar +exportfcn +topuse +typeuse -expect 6
380 -$(SPLINTR) exports.c +exportany -expect 3
381 -$(SPLINTR) exports.c
385 -$(SPLINTR) external.c +partial
386 -$(SPLINTR) external.c +partial +distinctexternalnames +ansi89limits -expect 2
387 -$(SPLINTR) external.c -nolib +partial -externalnamelength 3 -expect 3
388 -$(SPLINTR) external.c -nolib +partial -externalnamelength 3 +externalnamecaseinsensitive -expect 3
389 -$(SPLINTR) external.c +partial -externalnamelength 3 -expect 4
393 -$(SPLINTR) fields.c +memchecks -expect 6
394 -$(SPLINTR) fields2.c +memchecks -expect 5
395 -$(SPLINTR) fields3.c +memchecks
399 -$(SPLINTR) flags.c -expect 8
400 -$(SPLINTR) +nocomments flags.c -expect 2
406 ${SPLINTR} forbody.c -expect 2
411 ${SPLINTR} format.c -expect 3
412 ${SPLINTR} format.c -formatconst
414 # two new errors (invalid lhs)
418 -$(SPLINTR) +memchecks +noparams funcpointer.c -expect 18
420 .PHONY: functionmacro
422 -$(SPLINTR) functionmacro.c -expect 2
426 -$(SPLINTR) glob -expect 4
427 -$(SPLINTR) glob -globuse -expect 3
428 -$(SPLINTR) glob +globunspec -expect 6
432 -$(SPLINTR) -modifies globals.c -expect 5
433 -$(SPLINTR) -modifies globals.c +allglobals -expect 6
434 -$(SPLINTR) -modifies globals.c +impcheckedglobals -expect 6
435 -$(SPLINTR) -modifies globals.c -globals -checkstrictglobals -expect 2
436 -$(SPLINTR) -modifies globals.c +globunspec -expect 6
437 -$(SPLINTR) -modifies globals.c +globunspec +allglobals -expect 8
442 -$(SPLINTR) -accessmodule impabstract.c
443 -$(SPLINTR) -accessmodule +hints +impabstract impabstract.c -expect 2
444 -$(SPLINTR) -accessmodule +hints +impabstract impabstract -expect 4
447 ### evans 2001-12-30: Handle unrecognized pre-processor directives
448 ### (Reported by Pierluigi Sanzani)
452 ${SPLINTR} info.c -expect 4
454 ### evans 2001-10-14: Expected errors updated
457 -$(SPLINTR) init.c -expect 14
458 -$(SPLINTRN) init.c +checks -exportlocal -exportheadervar -expect 17
463 -$(SPLINTR) inparam.c -expect 2
464 -$(SPLINTR) +impouts inparam.c -expect 1
468 -$(SPLINTR) internal.c -expect 1
469 -$(SPLINTR) internal.c +distinctinternalnames -expect 1
470 -$(SPLINTR) internal.c +distinctinternalnames +ansi89limits -expect 2
471 -$(SPLINTR) internal.c -internalnamelen 28 -expect 3
472 -$(SPLINTR) internal.c +internalnamecaseinsensitive -expect 3
473 -$(SPLINTR) internal.c +internalnamecaseinsensitive +internalnamelookalike -expect 11
477 ### 2001-06-06: Error message for iter.lcl:3,6 fixed to iter.lcl:3:6
482 -$(SPLINTR) iter -expect 14 -lclexpect 1
483 -$(SPLINTR) iter2.c -expect 12
487 -$(SPLINTR) keep.c +memchecks -expect 6
490 ### 2001-05-22: 2 new errors found (fixed spec of signal)
491 ### 2001-05-30: 3 new errors found (formatconst)
495 -$(SPLINTR) libs.c +longunsignedunsignedintegral -expect 18
496 -$(SPLINTR) libs.c -expect 22
497 -$(SPLINTR) libs.c +globunspec +modunspec -expect 25
498 -$(SPLINTR) libs.c +strictlib +globunspec +modunspec -expect 42
502 -$(SPLINTR) lintcomments.c -expect 5
503 -$(SPLINTR) lintcomments.c -warnlintcomments -expect 1
504 -$(SPLINTR) lintcomments.c -lintcomments -expect 4
508 -$(SPLINTR) list.c -expect 3
511 ### 2002-01-01: Added test case for obvious loop execution.
516 -$(SPLINTR) loopexec.c -expect 1
517 -$(SPLINTR) loopexec.c -obviousloopexec -expect 3
519 .PHONY: looptesteffect
521 -$(SPLINTR) looptesteffect.c -expect 1
525 -$(SPLINTR) macros -expect 17
526 -$(SPLINTR) macros.c +allmacros -expect 34
527 -$(SPLINTR) macros.c +fcnmacros -expect 31
532 -$(SPLINTR) macrosef -expect 4
533 -$(SPLINTR) macrosef.c +allmacros -expect 3
534 -$(SPLINTR) macrosef.c +allmacros +sefuncon -expect 4
538 -$(SPLINTRN) merge.c +checks -exportlocal -exportheadervar -exportheader -expect 3
542 -$(SPLINTRN) mergenull.c
546 -$(SPLINTR) modifies.c modclient.c +impcheckedstatics +mustmod -expect 7
550 -$(SPLINTR) modtest -expect 10
551 -$(SPLINTR) modtest +modunspec -expect 13
552 -$(SPLINTR) modtest +mustmod -expect 14
556 -$(SPLINTR) moduncon.c +moduncon -memchecks -expect 4
557 -$(SPLINTRN) moduncon.c +strict -exportlocal -expect 22
559 .PHONY: mongoincludes
561 -$(SPLINTR) mongoincludes.c -includenest 1 -expect 19
562 -$(SPLINTR) mongoincludes.c -includenest 2 -expect 10
563 -$(SPLINTR) mongoincludes.c -includenest 3 -expect 4
564 -$(SPLINTR) mongoincludes.c -includenest 4 -expect 1
565 -$(SPLINTR) mongoincludes.c -includenest 5 -expect 0
569 -$(SPLINTR) mystrncat.c +boundsread +boundswrite -expect 4
573 ${SPLINTP} noeffect.c +allmacros +checks -expect 3
576 ### 2002-01-01: null1.c: expect increased to 15 because out must be defined
577 ### checking detects one new error
582 -$(SPLINTR) null1.c -expect 15
583 -$(SPLINTR) null1.c -null -mustdefine -expect 4
584 -$(SPLINTR) null2.c -expect 11
585 -$(SPLINTR) null3.c -expect 15
586 -$(SPLINTR) null3.c -warnunixlib +unixlib -expect 16
587 -$(SPLINTR) null4.c -expect 1
588 -$(SPLINTR) null5.c -expect 4
589 -$(SPLINTR) null6 -expect 4
590 -$(SPLINTR) +quiet null6.lcl -dump null6
591 -$(SPLINTR) null6.c -load null6 -expect 4
593 ### Added for 3.0 (bugs reported by Kevin Broady)
597 -$(SPLINTR) nullret.c -expect 2
598 -$(SPLINTR) -nullret nullret.c -expect 1
602 -$(SPLINTR) nullassign.c -expect 2
603 -$(SPLINTR) -nullassign nullassign.c -expect 1
607 # Before 2.4, expected one more because error was reported both as
608 # dependent and observer.
613 -$(SPLINTRN) observer +checks -exportlocal -exportheader -expect 9
614 -$(SPLINTRN) observer.c +checks -exportlocal -exportheader -expect 8
615 -$(SPLINTR) observer.c -expect 7
619 -$(SPLINTR) oldstyle oldstyle2.c -expect 5
623 -$(SPLINTR) outglob -expect 10
627 -$(SPLINTR) outparam -expect 12
629 ### evans 2001-08-26: postnotnull new
633 ${SPLINTR} postnotnull.c -expect 1
635 ### evans 2002-02-09: added parentype.c
638 ${SPLINTR} parentype.c
641 # Four new +fcnuse errors for -strict (evans 2001-07-22)
646 -$(SPLINTR) +hints preds.c -expect 6
647 -$(SPLINTRN) +hints preds.c -weak -expect 1
648 -$(SPLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 12
652 -$(SPLINTR) prefixes.c +partial
653 -$(SPLINTRN) prefixes.c +allmacros +checks -exportlocal +partial -exportheader -exportheadervar -expect 4
654 -$(SPLINTR) prefixes.c -typeprefix "T" -expect 2
655 -$(SPLINTR) prefixes.c -typeprefix "^" -expect 1
656 -$(SPLINTR) prefixes.c -typeprefix "^*" -expect 2
657 -$(SPLINTR) prefixes.c -typeprefix "^%*" -expect 2
658 -$(SPLINTR) prefixes.c -typeprefix "^~*" -expect 2
659 -$(SPLINTR) prefixes.c -typeprefix "^" +typeprefixexclude -expect 7
660 -$(SPLINTR) prefixes.c -filestaticprefix "^^" -expect 4
661 -$(SPLINTR) prefixes.c -filestaticprefix "^#" -expect 5
662 -$(SPLINTR) prefixes.c -filestaticprefix "^?&x" -expect 5
663 -$(SPLINTR) prefixes.c -globalprefix "G" -expect 1
664 -$(SPLINTR) prefixes.c -globalprefix "&G?_^" -expect 1
665 -$(SPLINTR) prefixes.c -externalprefix "G" -expect 5
666 -$(SPLINTR) prefixes.c -typeprefix "T" -externalprefix "G" -expect 4
667 -$(SPLINTR) prefixes.c -localprefix "?*" +localprefixexclude -expect 13
671 -$(SPLINTR) printflike.c -expect 6
672 -$(SPLINTR) printflike.c -warnlintcomments -expect 5
676 -$(SPLINTR) -DMYSTERY='"a flag\"wicked cool"' rc.c -expect 1
677 -$(SPLINTR) -DMYSTERY=12 rc.c -expect 1
678 -$(SPLINTR) -f rc1.splintrc rc.c -expect 1
679 -$(SPLINTR) -UMYSTERY -f rc1.splintrc rc.c -expect 1
680 -$(SPLINTR) -f rc3.splintrc rc.c -expect 1
684 cd rcfiles; ${MAKE} SPLINT="-$(SPLINTPNEST)"
688 -$(SPLINTR) refcounts.c -expect 7
692 -$(SPLINTR) release.c +memchecks -expect 1
696 -$(SPLINTR) +lh repexpose +memchecks -expect 12
697 -$(SPLINTR) repexpose +memchecks +retalias -expect 15
698 -$(SPLINTRN) repexpose +checks -exportlocal -expect 27
700 ### returned added 2001-05-27
701 ### (Bug discovered checking splint sources.)
705 ${SPLINTR} returned.c -expect 1
709 -$(SPLINTR) sharing1.c -expect 21
710 -$(SPLINTR) sharing3.c -expect 3
711 -$(SPLINTR) sharing4.c -expect 13
712 -$(SPLINTR) sharing4.c -paramimptemp -expect 12
713 -$(SPLINTR) sharing5.c -expect 6
717 -$(SPLINTR) shifts.c -expect 4
718 -$(SPLINTR) shifts.c -shiftimplementation -expect 3
719 -$(SPLINTR) shifts.c -shiftnegative -expect 1
723 -$(SPLINTR) +hints slovaknames.c -expect 1
724 -$(SPLINTR) +hints slovaknames.c +accessslovak
725 -$(SPLINTR) +hints +slovak slovaknames.c -expect 3
726 -$(SPLINTR) +hints +slovak -slovakvars slovaknames.c -expect 2
727 -$(SPLINTR) +hints +slovak -accessslovak slovaknames.c -expect 7
731 -$(SPLINTR) specclauses.c -expect 6
732 -$(SPLINTR) specclauses2.c -expect 8
733 -$(SPLINTR) specclauses3.c -expect 6
734 -$(SPLINTR) specclauses4.c -expect 3
735 -$(SPLINTR) specclauses5.c -expect 3
739 -$(SPLINTR) specclauses.c -expect 6
743 -$(SPLINTR) specclauses2.c -expect 8
747 -$(SPLINTR) specclauses3.c -expect 6
751 -$(SPLINTR) specclauses4.c -expect 3
755 -$(SPLINTR) specclauses5.c -expect 3
759 -$(SPLINTR) special -expect 20
760 -$(SPLINTR) special -relaxquals -expect 22
764 -$(SPLINTR) stack.c -expect 5
765 -$(SPLINTR) stack.c -stackref
769 -$(SPLINTR) staticarray.c -expect 3
772 ### evans 2002-03-16: Default setting of stringliteralnoroomfinalnull changed
775 .PHONY: stringliteral
777 -$(SPLINTR) stringliteral.c -stringliteralnoroomfinalnull -expect 3
778 -$(SPLINTR) stringliteral.c -expect 4
782 -$(SPLINTR) strings.c -expect 3
783 -$(SPLINTR) -readonlystrings -expect 1 strings.c
784 -$(SPLINTR) +modobserverstrict -maintype -expect 4 strings.c
788 -$(SPLINTR) structassign.c -expect 4
792 -$(SPLINTR) typeof.c -expect 2
796 -$(SPLINTR) typequals.c tq.lcl -expect 5
797 -$(SPLINTR) typequals.c -expect 2
801 -$(SPLINTR) ud.c -expect 9
802 -$(SPLINTR) ud2 -specundef -expect 3
806 -$(SPLINTR) ulstypes.c -expect 8
807 -$(SPLINTR) ulstypes.c +ignorequals
808 -$(SPLINTRN) ulstypes.c +strict -exportheader -exportheadervar -expect 28
810 # 3 more detected with version 2.5 (change in -numliteral setting)
814 -$(SPLINTR) +memchecks union.c -expect 8
817 ### Added 2001-12-30: fixed union initializer checking in response to
818 ### bug report from Jim Zelenka.
823 -$(SPLINTR) unioninit.c -expect 2
827 -$(SPLINTR) unnamedsu.c -expect 0
831 -$(SPLINTR) unreachable.c -expect 5
832 -$(SPLINTR) -unreachable unreachable.c -expect 2
833 -$(SPLINTR) switch.c -expect 4
835 .PHONY: unsignedcompare
837 ${SPLINTR} +posixlib unsignedcompare.c -expect 4
841 ### 2001-06-08 evans: 2 new errors after fixing ansireserved name checks
846 -$(SPLINTRN) unused.c +checks -exportlocal -expect 5
847 -$(SPLINTRN) unused.c +checks -exportlocal +topuse -expect 8
850 ### 2001-06-10: Provided by Jim Zalenka
855 ${SPLINTRN} ullint.c -expect 5
856 ${SPLINTRN} ullint.c +charint +charintliteral -expect 2
859 ### 2001-12-30: Poor warnings reported by Peter Deutsch
864 ${SPLINTRN} utypes.c -expect 6
870 ${SPLINTRN} void.c -expect 2
873 ### 2001-12-30: Problems with wide character strings reported by Nelson Beebe
878 ${SPLINTRN} widestrings.c -expect 2
886 ${SPLINTR} linked.c -expect 4
887 ${SPLINTR} linked2.c -expect 3
888 ${SPLINTR} linked3.c -expect 5
889 ${SPLINTR} linked4.c -expect 6
890 ${SPLINTR} linked5.c -expect 4
891 ${SPLINTR} linked6.c -expect 4
895 ${SPLINTR} freearray.c -expect 1
899 -$(SPLINTR) +bounds sizeof.c -expect 1
903 -$(SPLINTR) +bounds buffertest1.c -expect 5
908 ## db2: 2 errors are no longer reported, since eref is immutable.
909 ## Need to clarify what it means for an object to be immutable;
910 ## there should be 2 types with different storage requirements.
912 .PHONY: $(SUBDIRTESTS)
914 cd $@; $(MAKE) SPLINT="$(SPLINTRNNEST)"
916 #drl 11/29/2001 This is a very ugly hack to get make dist to work
917 EXTRA_DIST = ./abst_t.lcl ./abst_t.lcs \
918 ./abstptr.lcl ./abstptr.lcs \
919 ./alias.lcl ./alias.lcs \
920 ./alias2.lcl ./alias2.lcs \
991 ./repexpose.lh.expect \
1008 ./globalbufferannotation/.splintrc \
1009 ./maxset/.splintrc \
1010 ./strchr/.splintrc \
1011 ./tests2.2/bool.lcl \
1012 ./tests2.2/bool.lcs \
1013 ./tests2.2/libraries.lcd \
1014 ./tests2.2/obsolete.lcd \
1015 ./tests2.2/oldversion.lcd \
1016 ./tests2.4/subdir/main.lcl \
1017 ./tests2.4/subdir/main.lcs \
1018 ./tests2.5/newlint.lcd \
1019 ./warnuse/warnuse.lcd \
1060 ./compoundliterals.c ./compoundliterals.expect \
1061 ./compoundstmt.c ./compoundstmt.expect \
1082 ./czechoslovaknames.c \
1199 ./unsignedcompare.c \
1203 ./conditions/miroslaw.c \
1204 ./conditions/releases.c \
1206 ./fileio/filebranch.c \
1209 ./globalbufferannotation/globalvariable.c \
1210 ./maxset/maxsetannotations.c \
1211 ./maxset/maxsetnoannotations.c \
1212 ./mergestate/taintednm.c \
1213 ./metastate/file.c \
1214 ./metastate/file1.c \
1215 ./metastate/file2.c \
1216 ./metastate/file3.c \
1217 ./metastate/file4.c \
1218 ./metastate/file5.c \
1219 ./metastate/file6.c \
1220 ./metastate/file7.c \
1221 ./metastate/filebad.c \
1222 ./metastate/global.c \
1223 ./metastate/nullbranch.c \
1224 ./metastate/nullbranch2.c \
1225 ./metastate/nullret.c \
1227 ./metastate/sockets.c \
1228 ./metastate/sockets2.c \
1229 ./metastate/struct.c \
1230 ./metastate/test.c \
1231 ./metastate/voidptr.c \
1232 ./moreBufferTests/initialization.c \
1233 ./moreBufferTests/simplifyTest.c \
1234 ./moreBufferTests/strncatNotReallyGood.c \
1235 ./moreBufferTests/strncatReallyGood.c \
1236 ./moreBufferTests/strrchr.c \
1237 ./moreBufferTests/unrecogCall.c \
1238 ./nullterminatedtest/buggy1.c \
1239 ./nullterminatedtest/buggy_support1.c \
1240 ./nullterminatedtest/buggy_support_fmakeword.c \
1241 ./nullterminatedtest/test1.c \
1242 ./nullterminatedtest/test3.c \
1243 ./simplebufferConstraintTests/m.c \
1244 ./simplebufferConstraintTests/sizeof.c \
1245 ./simplebufferConstraintTests/test3.c \
1246 ./simplebufferConstraintTests/test7.c \
1247 ./sizeoftest/sizeof.c \
1249 ./suppressfile/test.c \
1250 ./tainted/sprintf.c \
1252 ./tainted/tainted.c \
1253 ./tainted/tainted2.c \
1254 ./tainted/tainted3.c \
1255 ./tainted/tainted4.c \
1256 ./tainted/tainted5.c \
1257 ./tainted/taintedimplicit.c \
1258 ./tainted/taintedmerge.c \
1259 ./tainted/taintedx.c \
1261 ./tclauses/globals.c \
1263 ./tclauses/modifies.c \
1264 ./tclauses/struct.c \
1265 ./tclauses/undef.c \
1266 ./tests2.2/arbints.c \
1267 ./tests2.2/arrayfcn.c \
1268 ./tests2.2/booldef.c \
1269 ./tests2.2/boolenum.c \
1270 ./tests2.2/boolops.c \
1271 ./tests2.2/break.c \
1272 ./tests2.2/bstring.c \
1274 ./tests2.2/enumbool.c \
1275 ./tests2.2/extension.c \
1276 ./tests2.2/libraries.c \
1277 ./tests2.2/modarray.c \
1278 ./tests2.2/nestext.c \
1279 ./tests2.2/offsetof.c \
1280 ./tests2.2/posix.c \
1281 ./tests2.2/realloc.c \
1283 ./tests2.2/sizeofarray.c \
1284 ./tests2.2/struct.c \
1285 ./tests2.2a/addassign.c \
1286 ./tests2.2a/arrayparam.c \
1287 ./tests2.2a/bitops.c \
1288 ./tests2.2a/boolcomp.c \
1289 ./tests2.2a/boolenum.c \
1290 ./tests2.2a/dobb.c \
1291 ./tests2.2a/duff.c \
1292 ./tests2.2a/erik.c \
1293 ./tests2.2a/floatdouble.c \
1294 ./tests2.2a/florian.c \
1295 ./tests2.2a/fred.c \
1296 ./tests2.2a/isalpha.c \
1297 ./tests2.2a/notreached.c \
1298 ./tests2.2a/obviousloop.c \
1299 ./tests2.2a/popik.c \
1300 ./tests2.2a/sizeof.c \
1301 ./tests2.2a/toralf.c \
1302 ./tests2.4/subdir/main.c \
1303 ./tests2.4/alignof.c \
1304 ./tests2.4/array.c \
1305 ./tests2.4/bitfields.c \
1310 ./tests2.4/cpptest.c \
1311 ./tests2.4/driverstub.c \
1312 ./tests2.4/duffs.c \
1313 ./tests2.4/emptycase.c \
1314 ./tests2.4/enumtest.c \
1315 ./tests2.4/error.c \
1317 ./tests2.4/flagequal.c \
1318 ./tests2.4/forward.c \
1320 ./tests2.4/hexconstants.c \
1321 ./tests2.4/innercomment.c \
1322 ./tests2.4/komazi.c \
1323 ./tests2.4/longlong.c \
1325 ./tests2.4/nothing.c \
1326 ./tests2.4/offsetof.c \
1327 ./tests2.4/print.c \
1329 ./tests2.4/syncomment.c \
1330 ./tests2.4/syslog.c \
1331 ./tests2.4/test0.c \
1332 ./tests2.4/test1.c \
1333 ./tests2.4/test2.c \
1334 ./tests2.4/timecard.c \
1335 ./tests2.4/toothman.c \
1336 ./tests2.4/ulrich.c \
1337 ./tests2.5/badcomment.c \
1338 ./tests2.5/boolbad.c \
1339 ./tests2.5/boolt.c \
1340 ./tests2.5/booltest.c \
1341 ./tests2.5/dummyfile.c \
1343 ./tests2.5/immutable.c \
1344 ./tests2.5/impabsmodule.c \
1345 ./tests2.5/literals.c \
1346 ./tests2.5/quals.c \
1348 ./tests2.5/testalt.c \
1349 ./tests2.5/testimmutable.c \
1350 ./tests2.5/uconstants.c \
1352 ./warnuse/warnflags.c \
1353 ./warnuse/warngets.c \
1354 ./warnuse/warnuse.c \
1355 ./moreBufferTests2/unknownsize.c \
1356 ./moreBufferTests2/arrayConstExpr.c \
1361 ansireserved.expect \
1367 branchstate.expect \
1374 commentchar.expect \
1375 compdestroy.expect \
1377 controldepth.expect \
1380 czechoslovaknames.expect \
1397 funcpointer.expect \
1399 globalbufferannotation.expect \
1402 impabstract.expect \
1410 lintcomments.expect \
1412 longconstants.expect \
1422 mongoincludes.expect \
1423 moreBufferTests.expect \
1424 moreBufferTests2.expect \
1429 nullterminatedtest.expect \
1434 postnotnull.expect \
1442 repexpose.lh.expect \
1445 simplebufferConstraintTests.expect \
1448 slovaknames.expect \
1449 specclauses.expect \
1452 staticarray.expect \
1455 structassign.expect \
1468 unreachable.expect \
1469 unsignedcompare.expect \
1508 ./metastate/global.h \
1509 ./suppressfile/test.h \
1510 ./tests2.2/mbool.h \
1511 ./tests2.4/forward.h \
1513 ./tests2.4/timecard.h \
1515 ./tests2.5/bimbim.h \
1516 ./tests2.5/immutable.h \
1517 ./tests2.5/impabsmodule.h \
1518 ./tests2.5/socket.h \
1519 ./Makefile-test.os2 \
1523 ./conditions/Makefile \
1526 ./globalbufferannotation/Makefile \
1528 ./mergestate/Makefile \
1529 ./metastate/Makefile \
1530 ./moreBufferTests/Makefile \
1531 ./simplebufferConstraintTests/Makefile \
1533 ./tainted/Makefile \
1535 ./tests2.2/Makefile \
1536 ./tests2.2/Makefile-tests2.2.os2 \
1537 ./tests2.4/Makefile \
1538 ./tests2.4/Makefile-tests2.4.os2 \
1539 ./tests2.5/Makefile \
1540 ./warnuse/Makefile \
1543 ./moreBufferTests2/Makefile \
1544 ./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 \
1545 db2.old-expect union.pp warnuse.old-expect \
1546 ./tests2.5/badcomment ./tests2.5/boolbad ./tests2.5/booltest ./tests2.5/uconstants loopexec.expect mergenull.expect shifts.expect looptesteffect.expect \
1547 unioninit.expect unioninit.c utypes.c \
1548 utypes.expect widestrings.expect widestrings.c \
1549 functionmacro.expect functionmacro.c info.c info.expect \
1550 loopexec.c looptesteffect.c mergenull.c shifts.c \
1551 manual.expect ./manual/Makefile \
1552 ./manual/annotglobs.c ./manual/bool.c ./manual/bool.h ./manual/clauses.c ./manual/employee.h ./manual/exposure.c ./manual/globals.c ./manual/ignore.c ./manual/implicit.c ./manual/intSet.h ./manual/list.c ./manual/loop.c ./manual/macros.c ./manual/modify.c ./manual/mstring.c ./manual/mstring.h ./manual/mstringnn.c ./manual/multiError.c ./manual/names.c ./manual/noeffect.c ./manual/null.c ./manual/only.c ./manual/order.c ./manual/palindrome.c ./manual/palindrome.h ./manual/refs.c ./manual/returned.c ./manual/rgb.c ./manual/rstring.c ./manual/rstring.h ./manual/sample.c ./manual/setChar.c ./manual/setname.c ./manual/setname.h ./manual/special.c ./manual/stack.c ./manual/sumsquares.c ./manual/switch.c ./manual/testpal.c ./manual/types.c ./manual/unique.c ./manual/usedef.c ./manual/bounds.c \
1553 arraydims.expect arraydims.c \
1554 moreBufferTests2/fixedArrayType.c oldstyle2.c \
1555 divzero.expect parentype.expect \
1556 divzero.c parentype.c \
1557 stringliteral.expect stringliteral.c