r348124 - [Analysis] Properly prepare test env in test/Analysis/undef-call.c

Ilya Biryukov via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 3 03:28:17 PST 2018


Author: ibiryukov
Date: Mon Dec  3 03:28:17 2018
New Revision: 348124

URL: http://llvm.org/viewvc/llvm-project?rev=348124&view=rev
Log:
[Analysis] Properly prepare test env in test/Analysis/undef-call.c

The test expectes the '%T/ctudir' to be present, but does not create it.

Modified:
    cfe/trunk/test/Analysis/undef-call.c

Modified: cfe/trunk/test/Analysis/undef-call.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/undef-call.c?rev=348124&r1=348123&r2=348124&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/undef-call.c (original)
+++ cfe/trunk/test/Analysis/undef-call.c Mon Dec  3 03:28:17 2018
@@ -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
 




More information about the cfe-commits mailing list