bug-dejagnu
[Top][All Lists]
Advanced

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

[Bug-dejagnu] runtest unable to load site.exp when the file path contain


From: Matthias Neumann
Subject: [Bug-dejagnu] runtest unable to load site.exp when the file path contains spaces
Date: Tue, 14 Mar 2017 14:39:32 +0100
User-agent: Roundcube Webmail/1.1.7

Dear Sir or Madam!

When calling the DejaGnu test driver "runtest" in a directory which has a space in its name, it crashes when trying to load the "site.exp" file contained in that directory.
Here is what happens:

address@hidden:~/c/ckurs4033/Hello World/testing$ runtest --verbose --verbose --version
Expect binary is /usr/bin/expect
Looking for /usr/share/dejagnu/runtest.exp.
Using /usr/share/dejagnu/runtest.exp as main test driver
Verbose level is 2
Login name is matthias.neumann
Looking for ~/.dejagnurc
Looking for /afs/informatik.uni-goettingen.de/user/m/matthias.neumann/c/ckurs4033/Hello World/testing/site.exp Found /afs/informatik.uni-goettingen.de/user/m/matthias.neumann/c/ckurs4033/Hello World/testing/site.exp ERROR: tcl error sourcing /afs/informatik.uni-goettingen.de/user/m/matthias.neumann/c/ckurs4033/Hello World/testing/site.exp.
wrong # args: should be "source ?-encoding name? fileName"
    while executing
"source /afs/informatik.uni-goettingen.de/user/m/matthias.neumann/c/ckurs4033/Hello World/testing/site.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source /afs/informatik.uni-goettingen.de/user/m/matthias.neumann/c/ckurs4033/Hello World/testing/site.exp"
    invoked from within
"catch "uplevel #0 source $file""
address@hidden:~/c/ckurs4033/Hello World/testing$

Looks like source is confused by the space being passed unescaped to it...

The output of "config.guess" is:
x86_64-unknown-linux-gnu

The output of the configure script follows:

address@hidden:~/c/ckurs4033/Hello World/testing$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
address@hidden:~/c/ckurs4033/Hello World/testing$

Yours sincerely,
Matthias Neumann



reply via email to

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