From: Aaron Ballman Date: Tue, 30 Oct 2018 20:55:18 +0000 (+0000) Subject: Changing the command line parameters sent to diff for this test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff8fd6b3a1be16263a7da21c5f289271b8a07e3f;p=clang Changing the command line parameters sent to diff for this test. On some systems, -U 1 was being interpreted as -U -1. Trying -U1 to see if that's the universally accepted approach instead. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345649 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/diagnostics/Inputs/expected-sarif/sarif-diagnostics-taint-test.c.sarif b/test/Analysis/diagnostics/Inputs/expected-sarif/sarif-diagnostics-taint-test.c.sarif index 015be05517..965bcb9a38 100644 --- a/test/Analysis/diagnostics/Inputs/expected-sarif/sarif-diagnostics-taint-test.c.sarif +++ b/test/Analysis/diagnostics/Inputs/expected-sarif/sarif-diagnostics-taint-test.c.sarif @@ -7,7 +7,7 @@ "fileLocation": { "uri": "file:sarif-diagnostics-taint-test.c" }, - "length": 501, + "length": 500, "mimeType": "text/plain", "roles": [ "resultFile" diff --git a/test/Analysis/diagnostics/sarif-diagnostics-taint-test.c b/test/Analysis/diagnostics/sarif-diagnostics-taint-test.c index 2b9775b665..3edbc34516 100644 --- a/test/Analysis/diagnostics/sarif-diagnostics-taint-test.c +++ b/test/Analysis/diagnostics/sarif-diagnostics-taint-test.c @@ -1,4 +1,4 @@ -// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.security.taint,debug.TaintTest %s -verify -analyzer-output=sarif -o - | diff -U 1 -w -I ".*file:.*sarif-diagnostics-taint-test.c" -I "clang version" -I "2\.0\.0\-beta\." - %S/Inputs/expected-sarif/sarif-diagnostics-taint-test.c.sarif +// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.security.taint,debug.TaintTest %s -verify -analyzer-output=sarif -o - | diff -U1 -w -I ".*file:.*sarif-diagnostics-taint-test.c" -I "clang version" -I "2\.0\.0\-beta\." - %S/Inputs/expected-sarif/sarif-diagnostics-taint-test.c.sarif #include "../Inputs/system-header-simulator.h" int atoi(const char *nptr);