forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request haskell#3712 from ezyang/pr/setup-segfault-msg
Give an explicit message when SIGSEGV happens.
- Loading branch information
Showing
7 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
. ./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 |
3 changes: 3 additions & 0 deletions
3
cabal-install/tests/IntegrationTests/custom/segfault/Setup.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import System.Posix.Signals | ||
|
||
main = putStrLn "Quitting..." >> raiseSignal sigSEGV |
1 change: 1 addition & 0 deletions
1
cabal-install/tests/IntegrationTests/custom/segfault/cabal.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
packages: . |
14 changes: 14 additions & 0 deletions
14
cabal-install/tests/IntegrationTests/custom/segfault/plain.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: plain | ||
version: 0.1.0.0 | ||
license: BSD3 | ||
author: Edward Z. Yang | ||
maintainer: [email protected] | ||
build-type: Custom | ||
cabal-version: >=1.10 | ||
|
||
library | ||
build-depends: base | ||
default-language: Haskell2010 | ||
|
||
custom-setup | ||
setup-depends: base, unix |