bug-gnucobol
[Top][All Lists]
Advanced

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

Re: Make Errors for gnucobol-3.1.2_win


From: Simon Sobisch
Subject: Re: Make Errors for gnucobol-3.1.2_win
Date: Wed, 12 May 2021 22:27:59 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1

First: Sorry for the late answer.

This issue is an older known false-positive testuite issue, which is
raised because of the following test code:

       01    os-check   pic x(7).
         88 os-is-windows-or-dos values 'WINDOWS' 'FREEDOS'.
       78  callee       value "./prog2".
       78  callee-wdos  value ".\prog2".
       procedure division.
           accept os-check from environment "OS".
           if os-check = spaces
             accept os-check from environment "OS_NAME".
           inspect os-check converting "werfdosin" to "WERFDOSIN".
           if os-is-windows-or-dos
             call "SYSTEM" using callee-wdos
           else
             call "SYSTEM" using callee.

Using the known environment variables for Windows/DOS environments
either ./prog or .\prog is used. In the Cygwin case the return will be
WINDOWS so .\prog is used and from the shell the \ is seen as escaping
character, and it then tries to call a program .prog2.

If I remember correctly most Windows environments will fail with a CALL
"SYSTEM" USING "./prog2", but the cygwin layer needs exactly that.

We added the "./" part because of previous test failures - people
actually had a prog2 binary somewhere in their PATH (prefixing a period
into the PATH for the testsuite in general and using CALL SYSTEM without
a directory again should likely work best and portable).

Any opinions on that?

In any case: only with this two false-positive failures: your build is
well and can be used without fear.

Regards,
Simon

Am 29.04.2021 um 16:23 schrieb James Doerries:
Please help with the following errors:  testsuite.log file attached.

Thanks for any help with this.

James Doerries
314-954-4223
jwdoerriesii@yahoo.com

## ------------- ##
## Test results. ##
## ------------- ##

ERROR: 1068 tests were run,
31 failed (29 expected failures).
18 tests were skipped.
## -------------------------- ##
## testsuite.log was created. ##
## -------------------------- ##

Please send `tests/testsuite.log' and all information you think might help:

    To: <bug-gnucobol@gnu.org>
    Subject: [GnuCOBOL 3.1.2] testsuite: 783 796 failed

You may investigate any problem if you feel able to do so, in which
case the test suite provides a good starting point.  Its output may
be found below `tests/testsuite.dir'.

make[3]: *** [Makefile:788: check-local] Error 1
make[3]: Leaving directory
'/cygdrive/c/OC/gnucobol-3.1.2_win_src/gnucobol-3.1.2_win/tests'
make[2]: *** [Makefile:665: check-am] Error 2
make[2]: Leaving directory
'/cygdrive/c/OC/gnucobol-3.1.2_win_src/gnucobol-3.1.2_win/tests'
make[1]: *** [Makefile:513: check-recursive] Error 1
make[1]: Leaving directory
'/cygdrive/c/OC/gnucobol-3.1.2_win_src/gnucobol-3.1.2_win/tests'
make: *** [Makefile:626: check-recursive] Error 1
DESKTOP-75QBO5K:gnucobol-3.1.2_win$




reply via email to

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