[PATCH] D31618: Don't remove the cwd

Rafael Ávila de Espíndola via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 3 12:36:24 PDT 2017


rafael created this revision.
Herald added a subscriber: kubamracek.

This works with a regular shell since the kernel can keep track of a deleted cwd. Since we just keep a path string, the following suppresses invocations fail.

I think this would also fail on windows.


https://reviews.llvm.org/D31618

Files:
  compiler-rt/test/asan/TestCases/Linux/coverage-missing.cc


Index: compiler-rt/test/asan/TestCases/Linux/coverage-missing.cc
===================================================================
--- compiler-rt/test/asan/TestCases/Linux/coverage-missing.cc
+++ compiler-rt/test/asan/TestCases/Linux/coverage-missing.cc
@@ -29,6 +29,7 @@
 // RUN: %clangxx_asan -fsanitize-coverage=func %s -o %dynamiclib -DFOOBAR -shared -fPIC
 // RUN: %clangxx_asan -fsanitize-coverage=func %s %dynamiclib -o %t -DMAIN
 // RUN: export LIBNAME=`basename %dynamiclib`
+// RUN: cd ..
 // RUN: rm -rf %T/coverage-missing
 // RUN: mkdir -p %T/coverage-missing
 // RUN: cd %T/coverage-missing


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31618.93921.patch
Type: text/x-patch
Size: 608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170403/405dd9d1/attachment.bin>


More information about the llvm-commits mailing list