r361592 - [analyzer] NFC: Prevent multi-file plist test from spamming up the build folder.

Artem Dergachev via cfe-commits cfe-commits at lists.llvm.org
Thu May 23 19:29:18 PDT 2019


Author: dergachev
Date: Thu May 23 19:29:18 2019
New Revision: 361592

URL: http://llvm.org/viewvc/llvm-project?rev=361592&view=rev
Log:
[analyzer] NFC: Prevent multi-file plist test from spamming up the build folder.

It was producing an HTML report with a random name on every tests run
and never cleaned those up.

Modified:
    cfe/trunk/test/Analysis/diagnostics/Inputs/expected-plists/plist-multi-file.c.plist
    cfe/trunk/test/Analysis/diagnostics/plist-multi-file.c

Modified: cfe/trunk/test/Analysis/diagnostics/Inputs/expected-plists/plist-multi-file.c.plist
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/diagnostics/Inputs/expected-plists/plist-multi-file.c.plist?rev=361592&r1=361591&r2=361592&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/diagnostics/Inputs/expected-plists/plist-multi-file.c.plist (original)
+++ cfe/trunk/test/Analysis/diagnostics/Inputs/expected-plists/plist-multi-file.c.plist Thu May 23 19:29:18 2019
@@ -184,10 +184,6 @@
    <key>col</key><integer>8</integer>
    <key>file</key><integer>1</integer>
   </dict>
-  <key>HTMLDiagnostics_files</key>
-  <array>
-   <string>report-288847.html</string>
-  </array>
   <key>ExecutedLines</key>
   <dict>
    <key>0</key>

Modified: cfe/trunk/test/Analysis/diagnostics/plist-multi-file.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/diagnostics/plist-multi-file.c?rev=361592&r1=361591&r2=361592&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/diagnostics/plist-multi-file.c (original)
+++ cfe/trunk/test/Analysis/diagnostics/plist-multi-file.c Thu May 23 19:29:18 2019
@@ -1,5 +1,5 @@
-// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output=plist-html -o %t.plist -verify %s
-// RUN: tail -n +11 %t.plist | %diff_plist --ignore-matching-lines=report %S/Inputs/expected-plists/plist-multi-file.c.plist -
+// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output=plist-multi-file -o %t.plist -verify %s
+// RUN: tail -n +11 %t.plist | %diff_plist %S/Inputs/expected-plists/plist-multi-file.c.plist -
 
 #include "plist-multi-file.h"
 




More information about the cfe-commits mailing list