Skip to content

Commit

Permalink
[hwasan] Re-enable the test with fallback
Browse files Browse the repository at this point in the history
The test passes without stdc++, but we prefer to run it with stdc++ if
availibe.
  • Loading branch information
vitalybuka committed Sep 12, 2023
1 parent 5f46f21 commit 11c8b9c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler-rt/test/hwasan/TestCases/sizes.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This test requires operator new to be intercepted by the hwasan runtime,
// so we need to avoid linking against libc++.
// RUN: %clangxx_hwasan %s -nostdlib++ -lstdc++ -o %t
// RUN: %clangxx_hwasan %s -nostdlib++ -lstdc++ -o %t || %clangxx_hwasan %s -o %t
// RUN: %env_hwasan_opts=allocator_may_return_null=0 not %run %t malloc 2>&1 | FileCheck %s --check-prefix=CHECK-max
// RUN: %env_hwasan_opts=allocator_may_return_null=1 %run %t malloc 2>&1
// RUN: %env_hwasan_opts=allocator_may_return_null=0 not %run %t malloc max 2>&1 | FileCheck %s --check-prefix=CHECK-max
Expand All @@ -23,9 +23,6 @@
// allocator can allocate. Tests that an integer overflow in the parameters of
// calloc is caught.

// FIXME: Fails on some bots.
// UNSUPPORTED: target={{.*}}

#include <assert.h>
#include <malloc.h>
#include <stdlib.h>
Expand Down

0 comments on commit 11c8b9c

Please sign in to comment.