[compiler-rt] f094144 - [libFuzzer] Fix stack-overflow-with-asan.test.
Matt Morehouse via llvm-commits
llvm-commits at lists.llvm.org
Fri May 7 09:18:53 PDT 2021
Author: Matt Morehouse
Date: 2021-05-07T09:18:21-07:00
New Revision: f09414499c4717b66baa9581c641e8a636e5dcc1
URL: https://github.com/llvm/llvm-project/commit/f09414499c4717b66baa9581c641e8a636e5dcc1
DIFF: https://github.com/llvm/llvm-project/commit/f09414499c4717b66baa9581c641e8a636e5dcc1.diff
LOG: [libFuzzer] Fix stack-overflow-with-asan.test.
Fix function return type and remove check for SUMMARY, since it doesn't
seem to be output in Windows.
Added:
Modified:
compiler-rt/test/fuzzer/StackOverflowTest.cpp
compiler-rt/test/fuzzer/stack-overflow-with-asan.test
Removed:
################################################################################
diff --git a/compiler-rt/test/fuzzer/StackOverflowTest.cpp b/compiler-rt/test/fuzzer/StackOverflowTest.cpp
index c8d8984957b2..109331368b21 100644
--- a/compiler-rt/test/fuzzer/StackOverflowTest.cpp
+++ b/compiler-rt/test/fuzzer/StackOverflowTest.cpp
@@ -10,7 +10,7 @@
volatile int x;
volatile int y = 1;
-int infinite_recursion(char *p) {
+void infinite_recursion(char *p) {
char *buf = nullptr;
if (y)
diff --git a/compiler-rt/test/fuzzer/stack-overflow-with-asan.test b/compiler-rt/test/fuzzer/stack-overflow-with-asan.test
index 76be70b580e1..ca3c2f9cbd64 100644
--- a/compiler-rt/test/fuzzer/stack-overflow-with-asan.test
+++ b/compiler-rt/test/fuzzer/stack-overflow-with-asan.test
@@ -1,3 +1,3 @@
-CHECK: SUMMARY: AddressSanitizer: stack-overflow
+CHECK: AddressSanitizer: stack-overflow
RUN: %cpp_compiler %S/StackOverflowTest.cpp -o %t-StackOverflowTest
RUN: not %run %t-StackOverflowTest 2>&1 | FileCheck %s
More information about the llvm-commits
mailing list