[XRay] Fix the test func-id-utils.cc on PPC.
authorTim Shen <timshen91@gmail.com>
Wed, 10 May 2017 16:07:03 +0000 (16:07 +0000)
committerTim Shen <timshen91@gmail.com>
Wed, 10 May 2017 16:07:03 +0000 (16:07 +0000)
commit40c012654ef5693ae3fed049f7b16d414914c98d
tree9bbdcf2c0e6e11b6b1330d1880c3a45c234e6d25
parentdce1c1439e9b3a8a6d4b787b438bada4512f3a51
[XRay] Fix the test func-id-utils.cc on PPC.

Summary:
The test fails on PPC, because the address of a function may vary
depending on whether the "taker" shares the same ToC (roughly, in the
same "module") as the function.

Therefore the addresses of the functions taken in func-id-utils.cc may be
different from the addresses taken in xray runtime.

Change the test to be permissive on address comparison.

Reviewers: dberris, echristo

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D33026

llvm-svn: 302686
compiler-rt/test/xray/TestCases/Linux/func-id-utils.cc