mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 04:29:17 +02:00
* fixes to run correctly
This commit is contained in:
parent
a61493db4c
commit
966a4a1789
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Makefile generated by fpcmake v0.99.13 [2000/02/08]
|
||||
# Makefile generated by fpcmake v0.99.13 [2000/02/24]
|
||||
#
|
||||
|
||||
defaultrule: info
|
||||
@ -316,8 +316,22 @@ endif
|
||||
# Users rules
|
||||
#####################################################################
|
||||
|
||||
# For linux by default no graph tests
|
||||
ifdef inlinux
|
||||
NOGRAPH=1
|
||||
endif
|
||||
|
||||
DIRS=tf ts tbs tbf test tesi to webtbs webtbf
|
||||
|
||||
# defining NOGRAPH excludes tests using the graph unit, defining
|
||||
# GRAPH includes those tests.
|
||||
ifdef NOGRAPH
|
||||
include graph.lst
|
||||
endif
|
||||
ifdef GRAPH
|
||||
graphlst=
|
||||
endif
|
||||
|
||||
all : info
|
||||
|
||||
tests : clean all_compilations
|
||||
@ -417,6 +431,7 @@ else
|
||||
testexec:
|
||||
ifeq ($(wildcard $(FILE)$(PPUEXT)),$(FILE)$(PPUEXT))
|
||||
@echo "file is a unit $(FILE)$(PPUEXT)"
|
||||
@echo "unit" > $(FILE).elg
|
||||
else
|
||||
@echo "No exefile $(FILE)$(EXEEXT)"
|
||||
@echo $(FILE) >> faillist
|
||||
@ -488,30 +503,30 @@ testone :
|
||||
%.eli : %.res
|
||||
$(MAKE) testexec 'FILE=$*' 'NOREDIR=YES'
|
||||
|
||||
allts : $(patsubst %.pp,%.res,$(wildcard ts/ts*.pp))
|
||||
allts : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard ts/ts*.pp)))
|
||||
|
||||
alltbs : $(patsubst %.pp,%.res,$(wildcard tbs/tbs*.pp))
|
||||
alltbs : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard tbs/tbs*.pp)))
|
||||
|
||||
allwebtbs : $(patsubst %.pp,%.res,$(wildcard webtbs/tbug*.pp))
|
||||
allwebtbs : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard webtbs/tbug*.pp)))
|
||||
|
||||
tbs0to99 : $(patsubst %.pp,%.res,$(wildcard tbs/tbs00*.pp))
|
||||
tbs100to199 : $(patsubst %.pp,%.res,$(wildcard tbs/tbs01*.pp))
|
||||
tbs200to299 : $(patsubst %.pp,%.res,$(wildcard tbs/tbs02*.pp))
|
||||
tbs300to399 : $(patsubst %.pp,%.res,$(wildcard tbs/tbs03*.pp))
|
||||
tbs0to99 : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard tbs/tbs00*.pp)))
|
||||
tbs100to199 : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard tbs/tbs01*.pp)))
|
||||
tbs200to299 : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard tbs/tbs02*.pp)))
|
||||
tbs300to399 : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard tbs/tbs03*.pp)))
|
||||
|
||||
alltest : $(patsubst %.pp,%.res,$(wildcard test/test*.pp))
|
||||
alltest : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard test/test*.pp)))
|
||||
|
||||
alltesi : $(patsubst %.pp,%.res,$(wildcard tesi/tesi*.pp))
|
||||
alltesi : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard tesi/tesi*.pp)))
|
||||
|
||||
alltis : $(patsubst %.pp,%.res,$(wildcard tis/tis*.pp))
|
||||
alltis : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard tis/tis*.pp)))
|
||||
|
||||
alltf : $(patsubst %.pp,%.ref,$(wildcard tf/tf*.pp))
|
||||
alltf : $(patsubst %.pp,%.ref,$(filter-out $(graphlst),$(wildcard tf/tf*.pp)))
|
||||
|
||||
alltbf : $(patsubst %.pp,%.ref,$(wildcard tbf/tbf*.pp))
|
||||
alltbf : $(patsubst %.pp,%.ref,$(filter-out $(graphlst),$(wildcard tbf/tbf*.pp)))
|
||||
|
||||
allwebtbf : $(patsubst %.pp,%.ref,$(wildcard webtbf/tbug*.pp))
|
||||
allwebtbf : $(patsubst %.pp,%.ref,$(filter-out $(graphlst),$(wildcard webtbf/tbug*.pp)))
|
||||
|
||||
allto : $(patsubst %.pp,%.res,$(wildcard to/to*.pp))
|
||||
allto : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard to/to*.pp)))
|
||||
|
||||
ifndef TS_FAIL_LIST
|
||||
ifeq ($(wildcard ts_fail*),ts_fail)
|
||||
@ -564,20 +579,20 @@ allfails :
|
||||
# these test are interactive
|
||||
# no redirection !!!
|
||||
|
||||
alltesiexec: $(patsubst %.pp,%.eli,$(wildcard tesi/tesi*.pp))
|
||||
alltesiexec: $(patsubst %.pp,%.eli,$(filter-out $(graphlst),$(wildcard tesi/tesi*.pp)))
|
||||
|
||||
alltsexec: $(patsubst %.pp,%.elg,$(wildcard ts/ts*.pp))
|
||||
alltsexec: $(patsubst %.pp,%.elg,$(filter-out $(graphlst),$(wildcard ts/ts*.pp)))
|
||||
|
||||
alltbsexec: $(patsubst %.pp,%.elg,$(wildcard tbs/tbs*.pp))
|
||||
alltbsexec: $(patsubst %.pp,%.elg,$(filter-out $(graphlst),$(wildcard tbs/tbs*.pp)))
|
||||
|
||||
allwebtbsexec: $(patsubst %.pp,%.elg,$(wildcard webtbs/tbug*.pp))
|
||||
allwebtbsexec: $(patsubst %.pp,%.elg,$(filter-out $(graphlst),$(wildcard webtbs/tbug*.pp)))
|
||||
|
||||
tbsexec0to99 : $(patsubst %.pp,%.elg,$(wildcard tbs/tbs00*.pp))
|
||||
tbsexec100to199 : $(patsubst %.pp,%.elg,$(wildcard tbs/tbs01*.pp))
|
||||
tbsexec200to299 : $(patsubst %.pp,%.elg,$(wildcard tbs/tbs02*.pp))
|
||||
tbsexec300to399 : $(patsubst %.pp,%.elg,$(wildcard tbs/tbs03*.pp))
|
||||
tbsexec0to99 : $(patsubst %.pp,%.elg,$(filter-out $(graphlst),$(wildcard tbs/tbs00*.pp)))
|
||||
tbsexec100to199 : $(patsubst %.pp,%.elg,$(filter-out $(graphlst),$(wildcard tbs/tbs01*.pp)))
|
||||
tbsexec200to299 : $(patsubst %.pp,%.elg,$(filter-out $(graphlst),$(wildcard tbs/tbs02*.pp)))
|
||||
tbsexec300to399 : $(patsubst %.pp,%.elg,$(filter-out $(graphlst),$(wildcard tbs/tbs03*.pp)))
|
||||
|
||||
alltisexec: $(patsubst %.pp,%.eli,$(wildcard tis/tis*.pp))
|
||||
alltisexec: $(patsubst %.pp,%.eli,$(filter-out $(graphlst),$(wildcard tis/tis*.pp)))
|
||||
|
||||
clean:
|
||||
-rm -f $(addsuffix /*.re*,$(DIRS))
|
||||
@ -591,7 +606,8 @@ ifdef inlinux
|
||||
else
|
||||
-rm -f $(addsuffix /*$(EXEEXT),$(DIRS))
|
||||
endif
|
||||
-rm -f $(LOG) $(LONGLOG) faillist ts_fail tf_fail
|
||||
-rm -f *.tmp
|
||||
-rm -f $(LOG) $(LONGLOG) faillist ts_fail tf_fail ex_fail
|
||||
-rm -f fpcmaked ppas.sh ppas.bat retcode
|
||||
|
||||
info :
|
||||
|
@ -10,8 +10,22 @@ none=1
|
||||
exts=1
|
||||
|
||||
[rules]
|
||||
# For linux by default no graph tests
|
||||
ifdef inlinux
|
||||
NOGRAPH=1
|
||||
endif
|
||||
|
||||
DIRS=tf ts tbs tbf test tesi to webtbs webtbf
|
||||
|
||||
# defining NOGRAPH excludes tests using the graph unit, defining
|
||||
# GRAPH includes those tests.
|
||||
ifdef NOGRAPH
|
||||
include graph.lst
|
||||
endif
|
||||
ifdef GRAPH
|
||||
graphlst=
|
||||
endif
|
||||
|
||||
all : info
|
||||
|
||||
tests : clean all_compilations
|
||||
@ -111,6 +125,7 @@ else
|
||||
testexec:
|
||||
ifeq ($(wildcard $(FILE)$(PPUEXT)),$(FILE)$(PPUEXT))
|
||||
@echo "file is a unit $(FILE)$(PPUEXT)"
|
||||
@echo "unit" > $(FILE).elg
|
||||
else
|
||||
@echo "No exefile $(FILE)$(EXEEXT)"
|
||||
@echo $(FILE) >> faillist
|
||||
@ -182,30 +197,30 @@ testone :
|
||||
%.eli : %.res
|
||||
$(MAKE) testexec 'FILE=$*' 'NOREDIR=YES'
|
||||
|
||||
allts : $(patsubst %.pp,%.res,$(wildcard ts/ts*.pp))
|
||||
allts : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard ts/ts*.pp)))
|
||||
|
||||
alltbs : $(patsubst %.pp,%.res,$(wildcard tbs/tbs*.pp))
|
||||
alltbs : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard tbs/tbs*.pp)))
|
||||
|
||||
allwebtbs : $(patsubst %.pp,%.res,$(wildcard webtbs/tbug*.pp))
|
||||
allwebtbs : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard webtbs/tbug*.pp)))
|
||||
|
||||
tbs0to99 : $(patsubst %.pp,%.res,$(wildcard tbs/tbs00*.pp))
|
||||
tbs100to199 : $(patsubst %.pp,%.res,$(wildcard tbs/tbs01*.pp))
|
||||
tbs200to299 : $(patsubst %.pp,%.res,$(wildcard tbs/tbs02*.pp))
|
||||
tbs300to399 : $(patsubst %.pp,%.res,$(wildcard tbs/tbs03*.pp))
|
||||
tbs0to99 : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard tbs/tbs00*.pp)))
|
||||
tbs100to199 : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard tbs/tbs01*.pp)))
|
||||
tbs200to299 : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard tbs/tbs02*.pp)))
|
||||
tbs300to399 : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard tbs/tbs03*.pp)))
|
||||
|
||||
alltest : $(patsubst %.pp,%.res,$(wildcard test/test*.pp))
|
||||
alltest : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard test/test*.pp)))
|
||||
|
||||
alltesi : $(patsubst %.pp,%.res,$(wildcard tesi/tesi*.pp))
|
||||
alltesi : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard tesi/tesi*.pp)))
|
||||
|
||||
alltis : $(patsubst %.pp,%.res,$(wildcard tis/tis*.pp))
|
||||
alltis : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard tis/tis*.pp)))
|
||||
|
||||
alltf : $(patsubst %.pp,%.ref,$(wildcard tf/tf*.pp))
|
||||
alltf : $(patsubst %.pp,%.ref,$(filter-out $(graphlst),$(wildcard tf/tf*.pp)))
|
||||
|
||||
alltbf : $(patsubst %.pp,%.ref,$(wildcard tbf/tbf*.pp))
|
||||
alltbf : $(patsubst %.pp,%.ref,$(filter-out $(graphlst),$(wildcard tbf/tbf*.pp)))
|
||||
|
||||
allwebtbf : $(patsubst %.pp,%.ref,$(wildcard webtbf/tbug*.pp))
|
||||
allwebtbf : $(patsubst %.pp,%.ref,$(filter-out $(graphlst),$(wildcard webtbf/tbug*.pp)))
|
||||
|
||||
allto : $(patsubst %.pp,%.res,$(wildcard to/to*.pp))
|
||||
allto : $(patsubst %.pp,%.res,$(filter-out $(graphlst),$(wildcard to/to*.pp)))
|
||||
|
||||
ifndef TS_FAIL_LIST
|
||||
ifeq ($(wildcard ts_fail*),ts_fail)
|
||||
@ -258,20 +273,20 @@ allfails :
|
||||
# these test are interactive
|
||||
# no redirection !!!
|
||||
|
||||
alltesiexec: $(patsubst %.pp,%.eli,$(wildcard tesi/tesi*.pp))
|
||||
alltesiexec: $(patsubst %.pp,%.eli,$(filter-out $(graphlst),$(wildcard tesi/tesi*.pp)))
|
||||
|
||||
alltsexec: $(patsubst %.pp,%.elg,$(wildcard ts/ts*.pp))
|
||||
alltsexec: $(patsubst %.pp,%.elg,$(filter-out $(graphlst),$(wildcard ts/ts*.pp)))
|
||||
|
||||
alltbsexec: $(patsubst %.pp,%.elg,$(wildcard tbs/tbs*.pp))
|
||||
alltbsexec: $(patsubst %.pp,%.elg,$(filter-out $(graphlst),$(wildcard tbs/tbs*.pp)))
|
||||
|
||||
allwebtbsexec: $(patsubst %.pp,%.elg,$(wildcard webtbs/tbug*.pp))
|
||||
allwebtbsexec: $(patsubst %.pp,%.elg,$(filter-out $(graphlst),$(wildcard webtbs/tbug*.pp)))
|
||||
|
||||
tbsexec0to99 : $(patsubst %.pp,%.elg,$(wildcard tbs/tbs00*.pp))
|
||||
tbsexec100to199 : $(patsubst %.pp,%.elg,$(wildcard tbs/tbs01*.pp))
|
||||
tbsexec200to299 : $(patsubst %.pp,%.elg,$(wildcard tbs/tbs02*.pp))
|
||||
tbsexec300to399 : $(patsubst %.pp,%.elg,$(wildcard tbs/tbs03*.pp))
|
||||
tbsexec0to99 : $(patsubst %.pp,%.elg,$(filter-out $(graphlst),$(wildcard tbs/tbs00*.pp)))
|
||||
tbsexec100to199 : $(patsubst %.pp,%.elg,$(filter-out $(graphlst),$(wildcard tbs/tbs01*.pp)))
|
||||
tbsexec200to299 : $(patsubst %.pp,%.elg,$(filter-out $(graphlst),$(wildcard tbs/tbs02*.pp)))
|
||||
tbsexec300to399 : $(patsubst %.pp,%.elg,$(filter-out $(graphlst),$(wildcard tbs/tbs03*.pp)))
|
||||
|
||||
alltisexec: $(patsubst %.pp,%.eli,$(wildcard tis/tis*.pp))
|
||||
alltisexec: $(patsubst %.pp,%.eli,$(filter-out $(graphlst),$(wildcard tis/tis*.pp)))
|
||||
|
||||
clean:
|
||||
-rm -f $(addsuffix /*.re*,$(DIRS))
|
||||
@ -285,7 +300,8 @@ ifdef inlinux
|
||||
else
|
||||
-rm -f $(addsuffix /*$(EXEEXT),$(DIRS))
|
||||
endif
|
||||
-rm -f $(LOG) $(LONGLOG) faillist ts_fail tf_fail
|
||||
-rm -f *.tmp
|
||||
-rm -f $(LOG) $(LONGLOG) faillist ts_fail tf_fail ex_fail
|
||||
-rm -f fpcmaked ppas.sh ppas.bat retcode
|
||||
|
||||
info :
|
||||
|
@ -7,7 +7,7 @@ var
|
||||
L:longint;
|
||||
S:string;
|
||||
begin
|
||||
assign(F,'tbs0098.pp'); { Assign F to itself }
|
||||
assign(F,'tbs/tbs0098.pp'); { Assign F to itself }
|
||||
reset(F); { Open it (as a textfile) }
|
||||
ReadLn(F); { Just read some lines }
|
||||
ReadLn(F);
|
||||
|
@ -8,10 +8,6 @@
|
||||
{ Win32 signal support is still missing ! }
|
||||
|
||||
{$ifdef OK}
|
||||
{$R+}
|
||||
{ BOUND check error... I don't think this is a code generator error }
|
||||
{ but an error because the type casting is not considered at all! }
|
||||
{ Must be compiled with -Cr }
|
||||
|
||||
{$ifdef go32v2}
|
||||
uses dpmiexcp;
|
||||
@ -23,23 +19,22 @@
|
||||
function our_sig(l : longint) : longint;{$ifdef linux}cdecl;{$endif}
|
||||
begin
|
||||
{ If we land here the program works correctly !! }
|
||||
Writeln('Bound check error signal recieved');
|
||||
Writeln('Sigsegv signal recieved');
|
||||
our_sig:=0;
|
||||
Halt(0);
|
||||
end;
|
||||
|
||||
Var
|
||||
Sel: Word;
|
||||
v: longint;
|
||||
v: pointer;
|
||||
{$endif OK}
|
||||
Begin
|
||||
{$ifdef OK}
|
||||
Signal(SIGSEGV,signalhandler(@our_sig));
|
||||
v:=$00ffffff;
|
||||
Sel:=word(v);
|
||||
writeln(sel);
|
||||
{ should trigger Bound check error }
|
||||
sel:=v;
|
||||
{ generate a sigsegv by writing to null-address }
|
||||
sel:=0;
|
||||
v:=nil;
|
||||
word(v^):=sel;
|
||||
{ we should not go to here }
|
||||
Writeln('Error : signal not called');
|
||||
Halt(1);
|
||||
|
Binary file not shown.
@ -8,5 +8,6 @@ type
|
||||
|
||||
begin
|
||||
a:=@a2;
|
||||
a2:=@a;
|
||||
a:=a2^;
|
||||
end.
|
@ -24,7 +24,7 @@ end;
|
||||
|
||||
|
||||
begin
|
||||
assign(fileof,'test.dat');
|
||||
assign(fileof,'tbs0238.tmp');
|
||||
rewrite(fileof);
|
||||
a:='dummy string !!';
|
||||
for nu:=1 to 8 do write(fileof,a);
|
||||
|
@ -24,7 +24,7 @@ const
|
||||
|
||||
single_pchar : pchar = 'Alone test';
|
||||
|
||||
const filename = 'ts010022.hlp';
|
||||
const filename = 'ts010022.tmp';
|
||||
|
||||
var en : pchar;
|
||||
f : text;
|
||||
|
@ -25,7 +25,7 @@ end;
|
||||
var Foo:tFoo;
|
||||
begin
|
||||
|
||||
assign(t,'tbug772.txt');
|
||||
assign(t,'tbug772.tmp');
|
||||
rewrite(t);
|
||||
writeln(t,'4');
|
||||
close(t);
|
||||
|
Loading…
Reference in New Issue
Block a user