Blame SOURCES/rhbz1643997.0030-PR23875-bpf.exp-fail-testcase-on-stack-smashing.patch

cab4ad
From d3a33cd7b8c1b0bfe236bdea2bde83c9c6a83c05 Mon Sep 17 00:00:00 2001
cab4ad
From: Serhei Makarov <smakarov@redhat.com>
cab4ad
Date: Tue, 13 Nov 2018 12:27:05 -0500
cab4ad
Subject: [PATCH 30/32] PR23875 bpf.exp: fail testcase on 'stack smashing'
cab4ad
cab4ad
---
cab4ad
 testsuite/systemtap.bpf/bpf.exp | 3 +++
cab4ad
 1 file changed, 3 insertions(+)
cab4ad
cab4ad
diff --git a/testsuite/systemtap.bpf/bpf.exp b/testsuite/systemtap.bpf/bpf.exp
cab4ad
index e8e94bf19..3f32b6c79 100644
cab4ad
--- a/testsuite/systemtap.bpf/bpf.exp
cab4ad
+++ b/testsuite/systemtap.bpf/bpf.exp
cab4ad
@@ -58,6 +58,9 @@ proc stapbpf_run { TEST_NAME OUTPUT_STR args } {
cab4ad
 
cab4ad
             expect {
cab4ad
                 -timeout 20
cab4ad
+                -re "stack smashing detected" {
cab4ad
+                    set rc $bad_output
cab4ad
+                }
cab4ad
                 -re $pass_str  {
cab4ad
                     set rc $pass
cab4ad
                 }
cab4ad
-- 
cab4ad
2.14.5
cab4ad