bug#49250: dejagnu 1.6.3 breaks automake 1.16.3 testsuite

2021-07-07 Thread Andreas Schwab
On Jul 06 2021, Jacob Bachmeyer wrote:

> Does it solve the problem at your site?

Yes, it does.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



___
Bug-dejagnu mailing list
Bug-dejagnu@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-dejagnu


bug#49250: dejagnu 1.6.3 breaks automake 1.16.3 testsuite

2021-06-29 Thread Andreas Schwab
I don't think there is any more information included here.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Test run by abuild on Tue Jun 29 08:32:08 2021
Native configuration is x86_64-pc-linux-gnu

		=== env tests ===

Schedule of variations:
unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
WARNING: Couldn't find tool config file for unix, using default.
WARNING: could not find testsuite; trying ..
Running ./env.test/env.exp ...
env_srcdir: .
PASS: test_env_src
testcase ./env.test/env.exp completed in 0 seconds
Running ./site.exp ...
testcase ./site.exp completed in 0 seconds
Running ./tcl.test/tcl.exp ...
tcl_srcdir: .
PASS: test_tcl_src
ERROR: tcl error sourcing ./tcl.test/tcl.exp.
ERROR: tcl error code TCL LOOKUP VARNAME orig_srcdir
ERROR: can't read "orig_srcdir": no such variable
while executing
"send_user "tcl_orig_srcdir: $orig_srcdir\n""
(file "./tcl.test/tcl.exp" line 7)
invoked from within
"source ./tcl.test/tcl.exp"
("uplevel" body line 1)
invoked from within
"uplevel #0 source ./tcl.test/tcl.exp"
invoked from within
"catch "uplevel #0 source $test_file_name" msg"
UNRESOLVED: testcase './tcl.test/tcl.exp' aborted due to Tcl error
testcase ./tcl.test/tcl.exp completed in 0 seconds

		=== env Summary ===

# of expected passes		2
# of unresolved testcases	1
ERROR: ---
ERROR: in testcase ./tcl.test/tcl.exp
ERROR:  can't read "orig_srcdir": no such variable
ERROR:  tcl error code TCL LOOKUP VARNAME orig_srcdir
ERROR:  tcl error info:
can't read "orig_srcdir": no such variable
while executing
"send_user "tcl_orig_srcdir: $orig_srcdir\n""
(file "./tcl.test/tcl.exp" line 7)
invoked from within
"source ./tcl.test/tcl.exp"
("uplevel" body line 1)
invoked from within
"uplevel #0 source ./tcl.test/tcl.exp"
invoked from within
"catch "uplevel #0 source $test_file_name" msg"
--
runtest completed at Tue Jun 29 08:32:08 2021
Test run by abuild on Tue Jun 29 08:32:08 2021
Native configuration is x86_64-pc-linux-gnu

		=== tcl tests ===

Schedule of variations:
unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
WARNING: Couldn't find tool config file for unix, using default.
WARNING: could not find testsuite; trying ..
Running ./env.test/env.exp ...
env_srcdir: .
PASS: test_env_src
testcase ./env.test/env.exp completed in 0 seconds
Running ./site.exp ...
testcase ./site.exp completed in 0 seconds
Running ./tcl.test/tcl.exp ...
tcl_srcdir: .
PASS: test_tcl_src
tcl_orig_srcdir: .
PASS: test_tcl_orig_src
testcase ./tcl.test/tcl.exp completed in 0 seconds

		=== tcl Summary ===

# of expected passes		3
runtest completed at Tue Jun 29 08:32:08 2021
___
Bug-dejagnu mailing list
Bug-dejagnu@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-dejagnu


bug#49250: dejagnu 1.6.3 breaks automake 1.16.3 testsuite

2021-06-28 Thread Andreas Schwab
++ make check
make  check-DEJAGNU check-TESTS check-local
make[1]: Entering directory 
'/home/abuild/rpmbuild/BUILD/automake-1.16.3/t/check12-w.dir/build'
Making a new site.exp file ...
srcdir='..'; export srcdir; \
EXPECT=expect; export EXPECT; \
if /bin/sh -c "runtest --version" > /dev/null 2>&1; then \
  exit_status=0; l='hammer spanner'; for tool in $l; do \
if runtest --tool $tool --srcdir $srcdir HAMMER=../hammer 
SPANNER=../spanner ; \
then :; else exit_status=1; fi; \
  done; \
else echo "WARNING: could not find 'runtest'" 1>&2; :;\
fi; \
exit $exit_status
WARNING: Couldn't find tool init file
Test run by abuild on Mon Jun 28 08:55:57 2021
Native configuration is x86_64-pc-linux-gnu

=== hammer tests ===

Schedule of variations:
unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for 
target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
WARNING: Couldn't find tool config file for unix, using default.
WARNING: could not find testsuite; trying ...
Running ../build/site.exp ...
Running ../hammer.test/hammer.exp ...
FAIL: test_hammer
Running ../spanner.test/spanner.exp ...

    === hammer Summary ===

# of expected passes1
# of unexpected failures1
WARNING: Couldn't find tool init file
Test run by abuild on Mon Jun 28 08:55:57 2021
Native configuration is x86_64-pc-linux-gnu

=== spanner tests ===

Schedule of variations:
unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for 
target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
WARNING: Couldn't find tool config file for unix, using default.
WARNING: could not find testsuite; trying ...
Running ../build/site.exp ...
Running ../hammer.test/hammer.exp ...
FAIL: test_hammer
Running ../spanner.test/spanner.exp ...

=== spanner Summary ===

# of expected passes1
# of unexpected failures1
make[1]: *** [Makefile:290: check-DEJAGNU] Error 1
make[1]: Leaving directory 
'/home/abuild/rpmbuild/BUILD/automake-1.16.3/t/check12-w.dir/build'
make: *** [Makefile:593: check-am] Error 2
++ test -f hammer.log
++ test -f hammer.sum
++ test -f spanner.log
++ test -f spanner.sum
++ grep 'FAIL: test_hammer' hammer.sum
FAIL: test_hammer
++ grep FAIL: spanner.sum
FAIL: test_hammer
++ _am_exit 1
++ set +e
++ test 77 = 1
++ exit 1
++ exit 1
+ am_exit_trap 1
+ exit_status=1
+ set +e
+ cd /home/abuild/rpmbuild/BUILD/automake-1.16.3
+ test none = tap
+ case $am_explicit_skips in
+ test 1 -eq 0
+ keep_testdirs=yes
+ am_keeping_testdirs
+ case $keep_testdirs in
+ return 0
+ set +x
FAIL t/check12-w.sh (exit status: 1)


Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



___
Bug-dejagnu mailing list
Bug-dejagnu@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-dejagnu


bug#42399: DejaGnu randomly truncates lines in runtest output

2020-07-17 Thread Andreas Schwab
On Jul 16 2020, Alex Coplan wrote:

> Then, create a subdirectory bug.dg, containing a single file bug.exp
> with the following contents:
>
>   global text
>
>   spawn "./a.out"
>
>   set prefix "\[^\r\n\]*"
>   expect {
> -re "^$prefix\tPASSED:${text}*" {

Are you sure you want to repeatedly match the last character in ${text}?

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



___
Bug-dejagnu mailing list
Bug-dejagnu@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-dejagnu


bug#41823: broken links in https://www.gnu.org/software/dejagnu/#lists

2020-06-17 Thread Andreas Schwab
On Jun 17 2020, Rob Savoye wrote:

>> Archives: http://mail.gnu.org/pipermail/
>> deja...@gnu.org: http://mail.gnu.org/pipermail/dejagnu/
>> subscribe: http://mail.gnu.org/mailman/listinfo/dejagnu
>> bug-dejagnu@gnu.org: http://mail.gnu.org/pipermail/bug-dejagnu
>> subscribe: http://mail.gnu.org/mailman/listinfo/bug-dejagnu
>> dejagnu-com...@gnu.org: http://mail.gnu.org/pipermail/dejagnu-commit
>> subscribe: http://mail.gnu.org/mailman/listinfo/dejagnu-commit
>
>   All of these links work

Do they?

$ telnet mail.gnu.org http
Trying 209.51.188.92...
telnet: connect to address 209.51.188.92: Connection refused

Andreas.

-- 
Andreas Schwab, SUSE Labs, sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



___
Bug-dejagnu mailing list
Bug-dejagnu@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-dejagnu


bug#35069: runtest takes too long on get_local_hostname

2019-04-01 Thread Andreas Schwab
On Apr 01 2019, Tom de Vries  wrote:

> FTR, I do consider this a workaround though. If my internet connection
> or configuration is broken in some way, I still expect say, ls to work
> reliably, with the same speed.

If ls needs to contact an LDAP server to resolve user names you cannot
expect it to work well when your LDAP server doesn't answer.

Andreas.

-- 
Andreas Schwab, SUSE Labs, sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



___
Bug-dejagnu mailing list
Bug-dejagnu@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-dejagnu


bug#35069: runtest takes too long on get_local_hostname

2019-04-01 Thread Andreas Schwab
On Apr 01 2019, Tom de Vries  wrote:

> Usually the testsuite runs in 12 seconds, but sometimes it takes more
> than a minute (I managed to reproduce the same problem by running a
> single gcc testsuite test-case).
>
> I tracked this down to tcl info hostname taking a long time, when:
> - having a vpn session active, and
> - having no network connection

Tcl calls gethostbyname on your hostname, so you should make sure that
it is resolvable (by adding it to /etc/hosts, for example, or installing
nss-myhostname).  That's probably a good idea anyway, since there may be
other programs trying to do that too.

Andreas.

-- 
Andreas Schwab, SUSE Labs, sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



___
Bug-dejagnu mailing list
Bug-dejagnu@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-dejagnu


Re: [Bug-dejagnu] BUG: improper format string construction in framework.exp

2018-10-30 Thread Andreas Schwab
On Okt 29 2018, Jacob Bachmeyer  wrote:

> Andreas Schwab wrote:
>> On Okt 28 2018, Jacob Bachmeyer  wrote:
>>   
>>> diff --git a/lib/framework.exp b/lib/framework.exp
>>> index 6cb93c5..50ac757 100644
>>> --- a/lib/framework.exp
>>> +++ b/lib/framework.exp
>>> @@ -800,7 +800,7 @@ proc record_test { type message args } {
>>>   global multipass_name
>>>  if { $multipass_name != "" } {
>>> -   set message [format "$type: %s: $message" "$multipass_name"]
>>> +   set message [format "%s: %s: %s" "$type" "$multipass_name" 
>>> "$message"]
>>> 
>>
>> What's the point of using format in the first place?
>>
>>   set message "$type: $multipass_name: $message"
>>   
>
> That code is ancient and was in the initial commit in whatever became the
> DejaGnu Git repository.  I presume that some version of Tcl does not
> correctly interpolate variables if the name contains underscore.

Then "$multipass_name" wouldn't work either.  In fact, tcl does not do
word splitting, so the quotes around the variables are actually useless.

Andreas.

-- 
Andreas Schwab, SUSE Labs, sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

___
Bug-dejagnu mailing list
Bug-dejagnu@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-dejagnu


Re: [Bug-dejagnu] BUG: improper format string construction in framework.exp

2018-10-29 Thread Andreas Schwab
On Okt 28 2018, Jacob Bachmeyer  wrote:

> diff --git a/lib/framework.exp b/lib/framework.exp
> index 6cb93c5..50ac757 100644
> --- a/lib/framework.exp
> +++ b/lib/framework.exp
> @@ -800,7 +800,7 @@ proc record_test { type message args } {
>  
>  global multipass_name
>  if { $multipass_name != "" } {
> -   set message [format "$type: %s: $message" "$multipass_name"]
> +   set message [format "%s: %s: %s" "$type" "$multipass_name" "$message"]

What's the point of using format in the first place?

  set message "$type: $multipass_name: $message"

Andreas.

-- 
Andreas Schwab, SUSE Labs, sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

___
Bug-dejagnu mailing list
Bug-dejagnu@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-dejagnu