From 98c3fd84802ab262cba796defb658e1cefd1568b Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 26 Apr 2023 16:48:38 -0700 Subject: [PATCH] [test][HWASAN] Suppress memory leak in getpass Reported after D149234. --- .../test/sanitizer_common/TestCases/Posix/getpass.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.*}}