tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] randomly failing tests


From: Vincent Lefevre
Subject: Re: [Tinycc-devel] randomly failing tests
Date: Wed, 7 Dec 2022 16:26:45 +0100
User-agent: Mutt/2.2.9+54 (af2080d3) vl-149028 (2022-12-04)

On 2022-12-07 16:12:22 +0100, Vincent Lefevre wrote:
> The cause seems to be that the generated executable name is fixed
> to "a.exe" instead of depending on the test name:
> 
> 113_btdll.test: T1 = \
>     $(TCC) -bt $1 -shared -D DLL=1 -o a1$(DLLSUF) && \
>     $(TCC) -bt $1 -shared -D DLL=2 -o a2$(DLLSUF) && \
>     $(TCC) -bt $1 a1$(DLLSUF) a2$(DLLSUF) -Wl,-rpath=. -o a.exe && \
>     ./a.exe
> 
> T2 = $(if $(NORUN),$1 -o a.exe && ./a.exe,-run $1)
> 
> GEN-CC = $(CC) -w -std=gnu99 $(FLAGS) $1 -o a.exe && ./a.exe $(ARGS)

Changing the T2 line to

  T2 = $(if $(NORUN),$1 -o a-$1.exe && ./a-$1.exe,-run $1)

avoids the failures for me, but I don't know whether this is OK
everywhere or sufficient.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]