summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAliaksey Kandratsenka <alkondratenko@gmail.com>2020-07-11 20:33:40 -0700
committerAliaksey Kandratsenka <alkondratenko@gmail.com>2020-07-11 20:51:50 -0700
commit1d9b8bb59d5610f2c3e9faad6bbd91ceca17fb93 (patch)
tree5c107a27723ab6f5bae818db0202b15f94707d4b /src
parent180bfa10d7cb38e8b3784d60943d50e8fcef0dcb (diff)
downloadgperftools-1d9b8bb59d5610f2c3e9faad6bbd91ceca17fb93.tar.gz
don't test sbrk hook if we're on linux and don't have __sbrk
"mmap" hooks code for linux only hooks sbrk when __sbrk is defined. But musl doesn't offer this function (reasonably so), so sbrk hooking doesn't work there. Not big loss, but lets make sure tests don't fail. Lets reference this to issue #1198
Diffstat (limited to 'src')
-rw-r--r--src/tests/tcmalloc_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/tcmalloc_unittest.cc b/src/tests/tcmalloc_unittest.cc
index d06c5a8..9d30343 100644
--- a/src/tests/tcmalloc_unittest.cc
+++ b/src/tests/tcmalloc_unittest.cc
@@ -1503,7 +1503,7 @@ static int RunAllTests(int argc, char** argv) {
// Test sbrk
SetSbrkHook();
-#if defined(HAVE_SBRK) && defined(__linux) && \
+#if defined(HAVE___SBRK) && defined(__linux) && \
(defined(__i386__) || defined(__x86_64__))
p1 = sbrk(8192);
CHECK(p1 != NULL);