[PATCH] D18312: [Compiler-rt] Mark getpwnam_r_invalid_user as expected failure for MIPS

Mohit Bhakkad via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 21 04:47:07 PDT 2016


mohit.bhakkad created this revision.
mohit.bhakkad added reviewers: kcc, eugenis, samsonov.
mohit.bhakkad added subscribers: llvm-commits, sagar, jaydeep.
mohit.bhakkad set the repository for this revision to rL LLVM.

On MIPS, there might be leak of some memory in libc when we call getpwnam_r, so it fails with a lsan error, otherwise assertions used in this test are positive.


Repository:
  rL LLVM

http://reviews.llvm.org/D18312

Files:
  test/sanitizer_common/TestCases/Linux/getpwnam_r_invalid_user.cc

Index: test/sanitizer_common/TestCases/Linux/getpwnam_r_invalid_user.cc
===================================================================
--- test/sanitizer_common/TestCases/Linux/getpwnam_r_invalid_user.cc
+++ test/sanitizer_common/TestCases/Linux/getpwnam_r_invalid_user.cc
@@ -1,4 +1,7 @@
 // Regression test for a crash in getpwnam_r and similar interceptors.
+
+// On MIPS, this test is failing with lsan error in libc
+// XFAIL: mips
 // RUN: %clangxx -O0 -g %s -o %t && %run %t
 
 #include <assert.h>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18312.51147.patch
Type: text/x-patch
Size: 510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160321/929c525d/attachment.bin>


More information about the llvm-commits mailing list