Fixed asan-asm-stacktrace-test.cc

Summary: Fixed asan-asm-stacktrace-test.cc. Now it's supported on x86_64 and added test run when no debug info is generated.

Differential Revision: http://reviews.llvm.org/D5547

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219200 91177308-0d34-0410-b5e6-96231b3b80d8
Run profile tests on FreeBSD

FreeBSD does not have libdl, so set it via lit.cfg instead of the test
input, as with asan.  Also remove it from Darwin test runs - it's not
necessary, but harmless there.

Add FreeBSD to the list of hosts to test.

Differential Revision: http://reviews.llvm.org/D5650


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219227 91177308-0d34-0410-b5e6-96231b3b80d8
Avoid bashisms and switch to /bin/sh

Bash may not be installed on some systems by default, like FreeBSD.

Differential Revision: http://reviews.llvm.org/D5654


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219231 91177308-0d34-0410-b5e6-96231b3b80d8