Skip to content

Commit

Permalink
[compiler-rt] [test] Mark dfsan tests XFAIL on glibc-2.37
Browse files Browse the repository at this point in the history
Mark the two dfsan tests that are known to be broken on glibc-2.37
as XFAIL, to make the test suite start passing on Gentoo again.

Bug: #60678

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

(cherry picked from commit 488a4b2)
  • Loading branch information
mgorny authored and tstellar committed May 2, 2023
1 parent 0c7669b commit da3cd33
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions compiler-rt/test/dfsan/custom.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// https://github.com/llvm/llvm-project/issues/60678
// XFAIL: glibc-2.37

// RUN: %clang_dfsan %s -o %t && DFSAN_OPTIONS="strict_data_dependencies=0" %run %t
// RUN: %clang_dfsan -DSTRICT_DATA_DEPENDENCIES %s -o %t && %run %t
// RUN: %clang_dfsan -DORIGIN_TRACKING -mllvm -dfsan-track-origins=1 -mllvm -dfsan-combine-pointer-labels-on-load=false -DSTRICT_DATA_DEPENDENCIES %s -o %t && %run %t
Expand Down
3 changes: 3 additions & 0 deletions compiler-rt/test/dfsan/release_shadow_space.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// https://github.com/llvm/llvm-project/issues/60678
// XFAIL: glibc-2.37

// DFSAN_OPTIONS=no_huge_pages_for_shadow=false RUN: %clang_dfsan %s -o %t && %run %t
// DFSAN_OPTIONS=no_huge_pages_for_shadow=true RUN: %clang_dfsan %s -o %t && %run %t
// DFSAN_OPTIONS=no_huge_pages_for_shadow=false RUN: %clang_dfsan %s -DORIGIN_TRACKING -mllvm -dfsan-track-origins=1 -o %t && %run %t
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/lit.common.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def get_macos_aligned_version(macos_vers):
if not config.android and len(ver_lines) and ver_lines[0].startswith(b"ldd "):
from distutils.version import LooseVersion
ver = LooseVersion(ver_lines[0].split()[-1].decode())
for required in ["2.27", "2.30", "2.34"]:
for required in ["2.27", "2.30", "2.34", "2.37"]:
if ver >= LooseVersion(required):
config.available_features.add("glibc-" + required)

Expand Down

0 comments on commit da3cd33

Please sign in to comment.