[PATCH] Fix GCC tests fail for installed toolchain due to ASan, UBSan and TSan testsuites drop GCC_EXEC_PREFIX.

Maxim Ostapenko m.ostapenko@partner.samsung.com
Thu Oct 9 12:46:00 GMT 2014


Hi,

After enabling ASan, TSan and UBSan testsuites for installed toolchain, 
many tests started to fail. This is caused by wrong logic in {asan, 
ubsan, tsan}_finish
functions. Here, restore_ld_library_path is called, that is wrong, 
because it drops some env variables ( GCC_EXEC_PREFIX, LD_LIBRARY_PATH, 
etc) to state that was before gcc-dg.exp initialized testing 
environment, so installed GCC will be confused to find some needed stuff 
later.

Removing restore_ld_library_path from {asan, ubsan, tsan}_finish seems 
to fix the issue.

Tested on x86_64-pc-linux-gnu, ok to commit?

-Maxim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_installed.diff
Type: text/x-patch
Size: 1213 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20141009/8221f078/attachment.bin>


More information about the Gcc-patches mailing list