On 2022-12-07 16:06:27 +0100, Vincent Lefevre wrote:
> Tests are failing randomly on Debian/x86_64:
> 
> [...]
> Test: 107_stack_safe...
> Test: 108_constructor...
> Test: 109_float_struct_calling...
> Test: 110_average...
> Test: 111_conversion...
> Test: 112_backtrace...
> --- 108_constructor.expect      2022-12-07 15:57:51.358297673 +0100
> +++ 108_constructor.output      2022-12-07 16:03:55.125155438 +0100
> @@ -1,3 +1 @@
> -constructor
> -main
> -destructor
> +/bin/sh: 1: ./a.exe: Text file busy
> make[3]: *** [Makefile:131: 108_constructor.test] Error 1
[...]

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)

-- 
Vincent Lefèvre <[email protected]> - 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)

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to