[compiler-rt] r299471 - Don't remove the cwd.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 4 14:42:59 PDT 2017


Author: rafael
Date: Tue Apr  4 16:42:59 2017
New Revision: 299471

URL: http://llvm.org/viewvc/llvm-project?rev=299471&view=rev
Log:
Don't remove the cwd.

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
subprocess invocations fail.

I think this would also fail on windows.

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

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/coverage-missing.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/coverage-missing.cc?rev=299471&r1=299470&r2=299471&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/coverage-missing.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/coverage-missing.cc Tue Apr  4 16:42:59 2017
@@ -30,6 +30,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




More information about the llvm-commits mailing list