[commit: testsuite] master: Add a test for #7859 (c6e9f29)
Ian Lynagh
igloo at earth.li
Tue Jun 4 20:38:32 CEST 2013
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite
On branch : master
https://github.com/ghc/testsuite/commit/c6e9f298135abe021b48f5df88364341210e1830
>---------------------------------------------------------------
commit c6e9f298135abe021b48f5df88364341210e1830
Author: Ian Lynagh <ian at well-typed.com>
Date: Tue Jun 4 19:13:29 2013 +0100
Add a test for #7859
>---------------------------------------------------------------
mk/boilerplate.mk | 4 ++++
tests/runghc/Makefile | 7 +++++++
tests/runghc/T7859.stderr | 1 +
tests/runghc/all.T | 6 ++++++
4 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/mk/boilerplate.mk b/mk/boilerplate.mk
index e5bf164..1765d78 100644
--- a/mk/boilerplate.mk
+++ b/mk/boilerplate.mk
@@ -91,6 +91,10 @@ ifeq "$(GHC_PKG)" ""
GHC_PKG := $(BIN_ROOT)/ghc-pkg
endif
+ifeq "$(RUNGHC)" ""
+RUNGHC := $(BIN_ROOT)/runghc
+endif
+
ifeq "$(HSC2HS)" ""
HSC2HS := $(BIN_ROOT)/hsc2hs
endif
diff --git a/tests/runghc/Makefile b/tests/runghc/Makefile
new file mode 100644
index 0000000..de374d5
--- /dev/null
+++ b/tests/runghc/Makefile
@@ -0,0 +1,7 @@
+TOP=../..
+include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/test.mk
+
+T7859:
+ -'$(RUNGHC)' -fdefer-type-errors T7859.hs
+
diff --git a/tests/runghc/T7859.stderr b/tests/runghc/T7859.stderr
new file mode 100644
index 0000000..f784874
--- /dev/null
+++ b/tests/runghc/T7859.stderr
@@ -0,0 +1 @@
+runghc: defer-type-errors: rawSystem: runInteractiveProcess: exec: does not exist (No such file or directory)
diff --git a/tests/runghc/all.T b/tests/runghc/all.T
new file mode 100644
index 0000000..e7a5612
--- /dev/null
+++ b/tests/runghc/all.T
@@ -0,0 +1,6 @@
+
+setTestOpts(when(compiler_profiled(), skip))
+
+test('T7859', req_interp, run_command,
+ ['$MAKE --no-print-directory -s T7859'])
+
More information about the ghc-commits
mailing list