Commit ca95eb89 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Port custom/segfault to new test suite



Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent 276fec3e
. ./common.sh
if [ "x$(uname)" != "xLinux" ]; then
exit
fi
# Older GHCs don't report exit via signal adequately
require_ghc_ge 708
cd segfault
! cabal new-build 2> log
cat log
grep SIGSEGV log
import Test.Cabal.Prelude
main = cabalTest $ do
-- TODO: this test ought to work on Windows too
skipUnless =<< isLinux
skipUnless =<< ghcVersionIs (>= mkVersion [7,8])
fails $ cabal' "new-build" [] >>= assertOutputContains "SIGSEGV"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment