regsub tcl error (was Re: )

David Smith dsmith@redhat.com
Fri Jan 11 14:16:00 GMT 2008


manjunath k wrote:
> Hi,
> 
> The following error is seen while executing the testsuite
> 
> Running /home/manjunathk/SYSTEMTAP-CE-4.2/src/testsuite/systemtap.base/add.exp
> ...
> ERROR: tcl error sourcing
> /home/manjunathk/SYSTEMTAP-CE-4.2/src/testsuite/systemtap.base/add.exp.
> ERROR: wrong # args: should be "regsub ?switches? exp string subSpec varName"
>     while executing
> "regsub {.*/testsuite/} $TEST_NAME """
>     (procedure "stap_run" line 7)

Hmm, that is odd.  That line hasn't been changed recently.  Plus, when I
try it, it seems to work fine:

# tclsh
% regsub {.*/testsuite/} /a/testsuite/b ""
b

What version of tcl are you using (and on what arch/os)?  I'm using tcl
8.4.15 on x86/f8.

One more question.  How were you running the testsuite - by "make check"
or "make installcheck"?

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)



More information about the Systemtap mailing list