]> granicus.if.org Git - clang/commitdiff
[Analysis] Properly prepare test env in test/Analysis/undef-call.c
authorIlya Biryukov <ibiryukov@google.com>
Mon, 3 Dec 2018 11:28:17 +0000 (11:28 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 3 Dec 2018 11:28:17 +0000 (11:28 +0000)
The test expectes the '%T/ctudir' to be present, but does not create it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348124 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/undef-call.c

index 35c0b685ce7e133c36ca1a44c0f8e5f2460bcd90..c7aa844d79824be01f3059f829a5cc16a12a582f 100644 (file)
@@ -1,3 +1,5 @@
+// RUN: rm -rf %T/ctudir
+// RUN: mkdir %T/ctudir
 // RUN: %clang_cc1 -fsyntax-only -analyze -analyzer-checker=debug.ExprInspection -analyzer-config experimental-enable-naive-ctu-analysis=true -analyzer-config ctu-dir=%T/ctudir -verify %s
 // expected-no-diagnostics