diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-06-18 13:53:51 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-06-18 13:53:51 +0000 |
commit | 3555ac91fdb74c57b2dcc7cfc8ba37ae99dfba67 (patch) | |
tree | 0775a8eb74f9cf1fa49a50d7483bbf1f4512ede2 /lib | |
parent | ab46e65a1e41037ff5345477a33f90ab3571c4a9 (diff) |
[sanitizer] Guard call to internal_lseek when SANITIZER_MAC is true
r334881 breaks macOS bots because internal_lseek is not defined (neither
used on macOS):
http://green.lab.llvm.org/green/job/clang-stage1-configure-RA/46240/consoleFull.
See discussion from r334881: https://reviews.llvm.org/rL334881
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334944 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sanitizer_common/tests/sanitizer_libc_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/tests/sanitizer_libc_test.cc b/lib/sanitizer_common/tests/sanitizer_libc_test.cc index 715da48f0..2f61601cd 100644 --- a/lib/sanitizer_common/tests/sanitizer_libc_test.cc +++ b/lib/sanitizer_common/tests/sanitizer_libc_test.cc @@ -113,7 +113,7 @@ TEST(SanitizerCommon, FileOps) { fd = OpenFile(tmpfile, WrOnly); ASSERT_NE(fd, kInvalidFd); -#if SANITIZER_POSIX +#if SANITIZER_POSIX && !SANITIZER_MAC EXPECT_EQ(internal_lseek(fd, 0, SEEK_END), 0u); #endif uptr bytes_written = 0; |