This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

regsub tcl error (was Re: )


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]