[compiler-rt] 98c3fd8 - [test][HWASAN] Suppress memory leak in getpass

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 26 16:50:00 PDT 2023


Author: Vitaly Buka
Date: 2023-04-26T16:48:57-07:00
New Revision: 98c3fd84802ab262cba796defb658e1cefd1568b

URL: https://github.com/llvm/llvm-project/commit/98c3fd84802ab262cba796defb658e1cefd1568b
DIFF: https://github.com/llvm/llvm-project/commit/98c3fd84802ab262cba796defb658e1cefd1568b.diff

LOG: [test][HWASAN] Suppress memory leak in getpass

Reported after D149234.

Added: 
    

Modified: 
    compiler-rt/test/sanitizer_common/TestCases/Posix/getpass.cpp

Removed: 
    


################################################################################
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.*}}
 


        


More information about the llvm-commits mailing list