This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Testsuite PATCH to add support for dlopen tests
- From: Andreas Schwab <schwab at suse dot de>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: Jason Merrill <jason at redhat dot com>, Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>, Richard Biener <richard dot guenther at gmail dot com>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 08 Apr 2014 11:58:02 +0200
- Subject: Re: RFA: Testsuite PATCH to add support for dlopen tests
- Authentication-results: sourceware.org; auth=none
- References: <533EE397 dot 9010600 at redhat dot com> <mvm1tx85h5w dot fsf at hawking dot suse dot de> <5343C133 dot 60201 at oracle dot com>
Paolo Carlini <paolo.carlini@oracle.com> writes:
> On 04/08/2014 11:01 AM, Andreas Schwab wrote:
>> Jason Merrill <jason@redhat.com> writes:
>>
>>> richi asked for a testcase for 60731, and since we didn't already have
>>> support for tests using dlopen, I had to add it. Does this approach make
>>> sense?
>> ERROR: tcl error sourcing /usr/local/gcc/gcc-20140408/gcc/testsuite/g++.dg/dg.exp.
>> ERROR: can't rename "dg-save-unknown": command doesn't exist
>> while executing
>> "rename dg-save-unknown unknown"
>> (procedure "saved-dg-test" line 96)
>> invoked from within
>> "saved-dg-test /usr/local/gcc/gcc-20140408/gcc/testsuite/g++.dg/dso/dlclose1.C -std=c++98 { -pedantic-errors -Wno-long-long}"
>> ("eval" body line 1)
>> invoked from within
>> "eval saved-dg-test $args"
>> (procedure "dg-test" line 11)
>> invoked from within
>> "dg-test $test $flags ${default-extra-flags}"
>> (procedure "g++-dg-runtest" line 27)
>> invoked from within
>> "g++-dg-runtest $tests $DEFAULT_CXXFLAGS"
>> (file "/usr/local/gcc/gcc-20140408/gcc/testsuite/g++.dg/dg.exp" line 60)
>> invoked from within
>> "source /usr/local/gcc/gcc-20140408/gcc/testsuite/g++.dg/dg.exp"
>> ("uplevel" body line 1)
>> invoked from within
>> "uplevel #0 source /usr/local/gcc/gcc-20140408/gcc/testsuite/g++.dg/dg.exp"
>> invoked from within
>> "catch "uplevel #0 source $test_file_name""
> I can confirm this.
I guess this depends on dejagnu >= 1.5, which added support for nested
calls to dg-test.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."