Skip to content

Commit

Permalink
Make stack smash test more tolerant.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eelis committed Dec 27, 2017
1 parent 1cff4c5 commit 27a05b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Testsuite.hs
Expand Up @@ -130,7 +130,7 @@ tests "misc" =

tests "diagnostics" =
[ test "-fstack-protector-all" "-w { char buf [10]; fill(buf, buf+30, 'x'); }" $
PrefixMatch "*** stack smashing detected ***: /geordi/run/t terminated\n"
PrefixMatch "*** stack smashing detected ***"
, test "-mcheck diagnostic" "{ int * p = new int [3]; p[3] = 6; delete[] p; }" $
PrefixMatch "memory clobbered past end of allocated block\n"
, test "Ditto" "{ int * p = new int [3]; p[-1] = 6; delete[] p; }" $
Expand Down

0 comments on commit 27a05b2

Please sign in to comment.