[patch, libstdc++] fix TCL error in abi.exp

Sandra Loosemore sandra@codesourcery.com
Fri May 16 19:53:00 GMT 2014


As noted in PR 23867, the libstdc++ ABI testsuite doesn't work for 
installed compiler testing.  There is some logic in abi.exp to check for 
the presence of the required bits and skip these tests if they're not 
there, but before it gets that far it's hitting a TCL error:

ERROR: can't read "baseline_subdir_switch": no such variable
     while executing
"eval exec $cxx $baseline_subdir_switch"
     invoked from within
"set baseline_subdir "[eval exec $cxx $baseline_subdir_switch]""
...

This patch moves the offending reference to $baseline_subdir_switch 
after the check for missing bits instead of before.  OK to commit?

-Sandra


2014-05-16  Iain Sandoe  <iain@codesourcery.com>
	    Sandra Loosemore  <sandra@codesourcery.com>

         libstdc++-v3/
         * testsuite/libstdc++-abi/abi.exp: Defer setting of baseline_subdir
         until after checking that the test is eligible to be run.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: abi.patch
Type: text/x-patch
Size: 784 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20140516/33e0ae75/attachment.bin>


More information about the Libstdc++ mailing list