[all-commits] [llvm/llvm-project] 180003: [clang] Fix ClangScanDeps test for #61006.

Ingo Müller via All-commits all-commits at lists.llvm.org
Sun Aug 13 11:23:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1800038fba42741c4013c64ee307611251118ee3
      https://github.com/llvm/llvm-project/commit/1800038fba42741c4013c64ee307611251118ee3
  Author: Ingo Müller <ingomueller at google.com>
  Date:   2023-08-13 (Sun, 13 Aug 2023)

  Changed paths:
    M clang/test/ClangScanDeps/pr61006.cppm

  Log Message:
  -----------
  [clang] Fix ClangScanDeps test for #61006.

This patch solves two problems with the recently added test, which
caused CI failure in an internal downstream system:

1. It connects subsequent `RUN` statements with `&&` into a single
   statement; otherwise, the variable defined in the first of them is
   out of scope in the subsequent ones where it is used.
2. In our hermetic testing environment, the clang++ binary under test
   does not have access to standard include paths (`/usr/include` etc.),
   so the test fails because it does not find `stddef.h`. The patch thus
   changes the test to use a locally created `a.h` header file.

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




More information about the All-commits mailing list