Skip to content

Commit

Permalink
[ubsan] Limit _BitInt ubsan tests to x86-64 platform only (llvm#104494)
Browse files Browse the repository at this point in the history
The patch llvm#104462 broke Sun
Solaris build.
Limit the tests to the tested platform only.
Tests changed are
compiler-rt/test/ubsan/TestCases/Integer/bit-int-pass.c and
compiler-rt/test/ubsan/TestCases/Integer/bit-int.c

---------

Co-authored-by: Eänolituri Lómitaurë <vladislav.aranov@ericsson.com>
Co-authored-by: Aaron Ballman <aaron@aaronballman.com>
Co-authored-by: Paul Kirth <paulkirth@google.com>
Co-authored-by: Vitaly Buka <vitalybuka@gmail.com>
  • Loading branch information
5 people authored Aug 15, 2024
1 parent 99a10f1 commit 290e485
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions compiler-rt/test/ubsan/TestCases/Integer/bit-int-pass.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// REQUIRES: x86_64-target-arch
// RUN: %clang -Wno-constant-conversion -Wno-array-bounds -Wno-division-by-zero -Wno-shift-negative-value -Wno-shift-count-negative -Wno-int-to-pointer-cast -O0 -fsanitize=alignment,array-bounds,bool,float-cast-overflow,implicit-integer-sign-change,implicit-signed-integer-truncation,implicit-unsigned-integer-truncation,integer-divide-by-zero,nonnull-attribute,null,nullability-arg,nullability-assign,nullability-return,pointer-overflow,returns-nonnull-attribute,shift-base,shift-exponent,signed-integer-overflow,unreachable,unsigned-integer-overflow,unsigned-shift-base,vla-bound %s -o %t1 && %run %t1 2>&1 | FileCheck %s

#include <stdint.h>
Expand Down
4 changes: 4 additions & 0 deletions compiler-rt/test/ubsan/TestCases/Integer/bit-int.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// REQUIRES: x86_64-target-arch
// RUN: %clang -Wno-constant-conversion -Wno-array-bounds -Wno-division-by-zero -Wno-shift-negative-value -Wno-shift-count-negative -Wno-int-to-pointer-cast -O0 -fsanitize=array-bounds,float-cast-overflow,implicit-integer-sign-change,implicit-signed-integer-truncation,implicit-unsigned-integer-truncation,integer-divide-by-zero,pointer-overflow,shift-base,shift-exponent,signed-integer-overflow,unsigned-integer-overflow,unsigned-shift-base,vla-bound %s -o %t1 && %run %t1 2>&1 | FileCheck %s

// FIXME: make the test pass on windows.
// XFAIL: target={{.*windows-msvc.*}}

#include <stdint.h>
#include <stdio.h>

Expand Down

0 comments on commit 290e485

Please sign in to comment.