[all-commits] [llvm/llvm-project] 2bfe05: [UpdateCCTestChecks] Fix --replace-value-regex acr...

Joel E. Denny via All-commits all-commits at lists.llvm.org
Mon Jun 21 14:08:48 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2bfe0536e5143caad80f7a9691fa775cf451317b
      https://github.com/llvm/llvm-project/commit/2bfe0536e5143caad80f7a9691fa775cf451317b
  Author: Joel E. Denny <jdenny.ornl at gmail.com>
  Date:   2021-06-21 (Mon, 21 Jun 2021)

  Changed paths:
    A clang/test/utils/update_cc_test_checks/Inputs/replace-value-regex-across-runs.c
    A clang/test/utils/update_cc_test_checks/Inputs/replace-value-regex-across-runs.c.expected
    A clang/test/utils/update_cc_test_checks/replace-value-regex-across-runs.test
    M llvm/utils/UpdateTestChecks/common.py

  Log Message:
  -----------
  [UpdateCCTestChecks] Fix --replace-value-regex across RUN lines

Without this patch, llvm/utils/update_cc_test_checks.py fails to
perform `--replace-value-regex` replacements when two RUN lines
produce the same output and use the same single FileCheck prefix.  The
problem is that replacements in a RUN line's output are not performed
until after comparing against previous RUN lines' output, where
replacements have already been performed.  This patch fixes that.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D104566




More information about the All-commits mailing list