diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/getpass.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/getpass.cpp index 201b47a7aa27..2711cfb11295 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Posix/getpass.cpp +++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/getpass.cpp @@ -1,7 +1,11 @@ -// RUN: %clangxx -O0 -g %s -lutil -o %t && %run %t | FileCheck %s +// RUN: %clangxx -O0 -g %s -lutil -o %t + +// Ignore leaks as this is not the point of test, but HWASAN repors one here. +// RUN: %env_tool_opts=detect_leaks=0 %run %t | FileCheck %s // REQUIRES: stable-runtime // XFAIL: android && asan + // No libutil. // UNSUPPORTED: target={{.*solaris.*}}