[test][HWASAN] Suppress memory leak in getpass
authorVitaly Buka <vitalybuka@google.com>
Wed, 26 Apr 2023 23:48:38 +0000 (16:48 -0700)
committerVitaly Buka <vitalybuka@google.com>
Wed, 26 Apr 2023 23:48:57 +0000 (16:48 -0700)
Reported after D149234.

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

index 201b47a..2711cfb 100644 (file)
@@ -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.*}}