[all-commits] [llvm/llvm-project] 7e65ff: [test, x86] Fix spurious x86-target-features.c fai...

RoboTux via All-commits all-commits at lists.llvm.org
Wed May 18 01:27:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7e65ffaa8bb65adc0324ccbea1fef56cab6eafe1
      https://github.com/llvm/llvm-project/commit/7e65ffaa8bb65adc0324ccbea1fef56cab6eafe1
  Author: Thomas Preud'homme <thomasp at graphcore.ai>
  Date:   2022-05-18 (Wed, 18 May 2022)

  Changed paths:
    M clang/test/Driver/x86-target-features.c

  Log Message:
  -----------
  [test, x86] Fix spurious x86-target-features.c failure

x86-target-features.c can spuriously fail when checking for absence of
the string "lvi" in the compiler output due to the temporary path used
for the output file. For example:
"-o" "/tmp/lit-tmp-981j7lvi/x86-target-features-670b86.o"
will make the test fail. This commit checks specifically for lvi as a
target feature, in a similar way to the positive CHECK directive just
above.

Test Plan: fails when using -mlvi-hardening and pass otherwise

Reviewed By: pengfei

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




More information about the All-commits mailing list