]> andersk Git - splint.git/blobdiff - test/db1/Makefile
Fixed problem with global struct assignments.
[splint.git] / test / db1 / Makefile
index 98bf18721c72f71557494f0c60a5d4db6d68984b..050fc91e2d95cdfd5a1eacac5fdb7a2dc0b0261b 100644 (file)
@@ -1,5 +1,5 @@
 ###
-### LCLint db1 test
+### Splint db1 test
 ###
 ### Taken from sample, second iteration: weakchecks
 ###
@@ -7,11 +7,11 @@
 .SUFFIXES: .lcl .lcs .lh .h .c .o
 .PHONY: check clean
 
-SHELL = /bin/csh -f
+### SHELL = /bin/csh -f
 
-LCLINT = lclint -booltype bool
-LCL = $(LCLINT) -specundef +lh +quiet -nof
-LCLINTLH = $(LCLINT) +lh
+SPLINT = splint -booltype bool -booltrue TRUE -boolfalse FALSE
+LCL = $(SPLINT) -specundef +lh +quiet -nof
+SPLINTLH = $(SPLINT) +lh
 LCSFILES = bool.lcs dbase.lcs employee.lcs empset.lcs erc.lcs eref.lcs ereftab.lcs 
 
 MODULES = bool.lcl employee eref empset ereftab erc dbase drive.c
@@ -21,9 +21,17 @@ test:
        $(MAKE) -e clean
        $(MAKE) -e check
 
+###
+### Removed +showscan, produces different results on different platforms
+###
+
+### evans 2002-12-17: 2 fewer weak errors because of -abstractcompare default in weak
+
 check: $(LCSFILES)
-       $(LCLINT) -showcol -weak +showscan $(MODULES) -expect 16
-       $(LCLINT) -showcol +strict -modfilesystem +showscan +showsummary $(MODULES) -expect 333
+       -$(SPLINT) -showcol -weak $(MODULES) -expect 19
+       -$(SPLINT) -showcol +strict -bounds -modfilesystem +showsummary $(MODULES) -expect 338
+
+# evans 2002-07-09: 5 bufferoverflowhigh warnings for using sprintf
 
 ### The following rules generate .lh and .lcs files from .lcl files.  They also
 ### ensure that .h files appear to be updated whenever the corresponding .lh
@@ -47,10 +55,10 @@ check: $(LCSFILES)
 ###
 
 clean: tidy
-       -@rm -f *.c.html *.lcl.html *.h.html *.lh.html *.lcs *.lh >& /dev/null
+       -@rm -f *.c.html *.lcl.html *.h.html *.lh.html *.lcs *.lh 1> /dev/null
 
 tidy:
-       -@rm -f ,* .,* *.CKP *.BAK .emacs_[0-9]* core a.out *.*~ *~ *.o drive >& /dev/null
+       -@rm -f ,* .,* *.CKP *.BAK .emacs_[0-9]* core a.out *.*~ *~ *.o drive 11> /dev/null
 
 ### The following dependencies ensure that imported LCL specs 
 ### are checked before the specs that import them.
This page took 0.038001 seconds and 4 git commands to generate.