On Sat, Jan 17, 2026 at 12:40:07PM +0200, Eli Zaretskii wrote:
> > Date: Thu, 15 Jan 2026 21:54:32 +0100
> > From: [email protected]
> > Cc: [email protected], [email protected]
> > 
> > For me, the output is:
> > 
> > testdir: formatting
> > driving_file: ./formatting/list-of-tests
> > made result dir: ./formatting/res_parser/
> > 
> > doing test reuse_macro_expand_file, src_file ./formatting/simplest.texi
> > format_option: 
> > perl/texi2any.pl reuse_macro_expand_file -> 
> > formatting/out_parser/reuse_macro_expand_file
> >  /usr/bin/perl -w ./..//perl/texi2any.pl  --force --conf-dir 
> > ./../perl/t/init/ --conf-dir ./../perl/init --conf-dir ./../perl/ext -I 
> > ./formatting -I formatting/ -I ./ -I . -I built_input -I 
> > built_input/non_ascii --error-limit=1000 -c TEST=2  --output 
> > formatting/out_parser/reuse_macro_expand_file/ 
> > --macro-expand=formatting/out_parser/reuse_macro_expand_file/simplest.info 
> > ./formatting/simplest.texi > 
> > formatting/out_parser/reuse_macro_expand_file/simplest.1 
> > 2>formatting/out_parser/reuse_macro_expand_file/simplest.2
> > 
> > all done, exiting with status 0
> 
> Here's my output:
> 
>   $ ./test_scripts/formatting_reuse_macro_expand_file.sh
>   D: formatting/diffs/reuse_macro_expand_file.diff (printed below)
>   diff --strip-trailing-cr -a -u --strip-trailing-cr -r 
> ./formatting/res_parser/reuse_macro_expand_file/simplest.2 
> formatting/out_parser/reuse_macro_expand_file/simplest.2
>   --- ./formatting/res_parser/reuse_macro_expand_file/simplest.2  2026-01-02 
> 00:38:09 +0200
>   +++ formatting/out_parser/reuse_macro_expand_file/simplest.2    2026-01-17 
> 12:27:21 +0200
>   @@ -1 +0,0 @@
>   -texi2any: warning: overwriting file: 
> formatting/out_parser/reuse_macro_expand_file/simplest.info
>   D: formatting/diffs/reuse_macro_expand_file.diff (printed above)
>   testdir: formatting
>   driving_file: ./formatting/list-of-tests
>   made result dir: ./formatting/res_parser/
> 
>   doing test reuse_macro_expand_file, src_file ./formatting/simplest.texi
>   format_option:
>   perl/texi2any.pl reuse_macro_expand_file -> 
> formatting/out_parser/reuse_macro_expand_file
>    /d/usr/Perl/bin/perl -w ./..//perl/texi2any.pl  --force --conf-dir 
> ./../perl/t/init/ --conf-dir ./../perl/init --conf-dir ./../perl/ext -I 
> ./formatting -I formatting/ -I ./ -I . -I built_input -I 
> built_input/non_ascii --error-limit=1000 -c TEST=1  --output 
> formatting/out_parser/reuse_macro_expand_file/ 
> --macro-expand=formatting/out_parser/reuse_macro_expand_file/simplest.info 
> ./formatting/simplest.texi > 
> formatting/out_parser/reuse_macro_expand_file/simplest.1 
> 2>formatting/out_parser/reuse_macro_expand_file/simplest.2
> 
>   all done, exiting with status 1
> 
> AFAICT, the only differences are:
> 
>   . I get diffs, whereas you don't
>   . in my case the command says TEST=1, not TEST=2
>   . the exit status is 1 and not 0
> 
> Does this give any clues as to what is going on?

Not really.  If TEST=2, there are additional checks of reference count
of Perl objects, you probably do not have the modules needed by that.
It is not important, the bugs that can be found like that are not
important bugs and probably not platform dependent.  So TEST=1 is ok,
and should not interfere with this test.

Maybe something that could be done easily to check the file name used
for the Info file would be to call texi2any.pl with --verbose, so like:

/d/usr/Perl/bin/perl -w ./..//perl/texi2any.pl  --force --conf-dir 
./../perl/t/init/ --conf-dir ./../perl/init --conf-dir ./../perl/ext -I 
./formatting -I formatting/ -I ./ -I . -I built_input -I built_input/non_ascii 
--error-limit=1000 -c TEST=1 --verbose --output 
formatting/out_parser/reuse_macro_expand_file/ 
--macro-expand=formatting/out_parser/reuse_macro_expand_file/simplest.info 
./formatting/simplest.texi

In my case, I get this information:
  Output file formatting/out_parser/reuse_macro_expand_file/simplest.info

If it is not the same, it could explain why there is no 'overwriting
file' warning.

-- 
Pat

Reply via email to