Skip to content

Commit 4363cd2

Browse files
committed
Modify error test to run with hwasan without error
The sanitizer-aarch64-linux-bootstrap-hwasan buildbot was failing when running the llvm/test/CodeGen/SPIRV/opencl/reflect-error.ll test. Defining `abort_on_error=0` in the HWASAN_OPTIONS environment variable should resolve this issue, as the test purposefully throws an error we intend to catch.
1 parent d72c555 commit 4363cd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/CodeGen/SPIRV/opencl/reflect-error.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: not llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o /dev/null 2>&1 | FileCheck %s
2-
; RUN: not llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o /dev/null 2>&1 | FileCheck %s
1+
; RUN: HWASAN_OPTIONS="abort_on_error=0" not llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o /dev/null 2>&1 | FileCheck %s
2+
; RUN: HWASAN_OPTIONS="abort_on_error=0" not llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o /dev/null 2>&1 | FileCheck %s
33

44
; CHECK: LLVM ERROR: %{{.*}} = G_INTRINSIC intrinsic(@llvm.spv.reflect), %{{.*}}, %{{.*}} is only supported with the GLSL extended instruction set.
55

0 commit comments

Comments
 (0)