Skip to content

Commit

Permalink
#1502 break unit tests on ASAN errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Strzebonski committed Jul 20, 2021
1 parent cbbb803 commit b1b73bb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/unit/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ char** test_argv = nullptr;

}}} // end namespace vt::tests::unit

extern "C" {
void __ubsan_on_report() {
FAIL() << "Encountered an undefined behavior sanitizer error";
}

void __asan_on_error() {
FAIL() << "Encountered an address sanitizer error";
}
}

int main(int argc, char **argv) {

using namespace vt::tests::unit;
Expand Down

0 comments on commit b1b73bb

Please sign in to comment.