]> granicus.if.org Git - clang/commitdiff
[analyzer] [tests] Fix a typo in analyzer testing script.
authorGeorge Karpenkov <ekarpenkov@apple.com>
Mon, 12 Feb 2018 22:13:01 +0000 (22:13 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Mon, 12 Feb 2018 22:13:01 +0000 (22:13 +0000)
Incorrect option instance construction.

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

utils/analyzer/SATestBuild.py

index 2becaa07a7dc81805ab120203266ccf3f8850ea1..7ec87e4a27e90fa3a1b39c46e4355970323b4a1c 100755 (executable)
@@ -567,7 +567,7 @@ def runCmpResults(Dir, Strictness=0):
 
         PatchedSourceDirPath = os.path.join(Dir, PatchedSourceDirName)
         Opts, Args = CmpRuns.generate_option_parser().parse_args(
-            ["", PatchedSourceDirPath])
+            ["--rootA", "", "--rootB", PatchedSourceDirPath])
         # Scan the results, delete empty plist files.
         NumDiffs, ReportsInRef, ReportsInNew = \
             CmpRuns.dumpScanBuildResultsDiff(RefDir, NewDir, Opts, False)