Skip to content

Commit 11c8b9c

Browse files
committed
[hwasan] Re-enable the test with fallback
The test passes without stdc++, but we prefer to run it with stdc++ if availibe.
1 parent 5f46f21 commit 11c8b9c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler-rt/test/hwasan/TestCases/sizes.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This test requires operator new to be intercepted by the hwasan runtime,
22
// so we need to avoid linking against libc++.
3-
// RUN: %clangxx_hwasan %s -nostdlib++ -lstdc++ -o %t
3+
// RUN: %clangxx_hwasan %s -nostdlib++ -lstdc++ -o %t || %clangxx_hwasan %s -o %t
44
// RUN: %env_hwasan_opts=allocator_may_return_null=0 not %run %t malloc 2>&1 | FileCheck %s --check-prefix=CHECK-max
55
// RUN: %env_hwasan_opts=allocator_may_return_null=1 %run %t malloc 2>&1
66
// RUN: %env_hwasan_opts=allocator_may_return_null=0 not %run %t malloc max 2>&1 | FileCheck %s --check-prefix=CHECK-max
@@ -23,9 +23,6 @@
2323
// allocator can allocate. Tests that an integer overflow in the parameters of
2424
// calloc is caught.
2525

26-
// FIXME: Fails on some bots.
27-
// UNSUPPORTED: target={{.*}}
28-
2926
#include <assert.h>
3027
#include <malloc.h>
3128
#include <stdlib.h>

0 commit comments

Comments
 (0)