[commit: testsuite] master: Add dynamic version of T4464 (4919c4a)

Paolo Capriotti <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/4919c4a8d120651d7af3cd9da639e7aab64dc96c

>---------------------------------------------------------------

commit 4919c4a8d120651d7af3cd9da639e7aab64dc96c
Author: Paolo Capriotti <[email protected]>
Date:   Sun Sep 9 16:51:44 2012 +0100

    Add dynamic version of T4464

>---------------------------------------------------------------

 tests/dynlibs/Makefile     |   11 +++++++++++
 tests/dynlibs/T4464.stderr |    2 ++
 tests/dynlibs/T4464.stdout |    2 ++
 3 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/tests/dynlibs/Makefile b/tests/dynlibs/Makefile
index 0173f77..2f5620c 100644
--- a/tests/dynlibs/Makefile
+++ b/tests/dynlibs/Makefile
@@ -13,6 +13,9 @@ T3807:
 	'$(TEST_HC)' $(filter-out -rtsopts,$(TEST_HC_OPTS)) -no-auto-link-packages -no-hs-main T3807-load.c -o T3807-load -ldl
 	./T3807-load
 
+.PHONY: T4464dyn
+T4464dyn:
+
 .PHONY: T4464
 T4464:
 	$(RM) T4464B.o T4464C.o T4464H.hi T4464H.o
@@ -29,6 +32,14 @@ T4464:
 	'$(TEST_HC)' $(filter-out -rtsopts,$(TEST_HC_OPTS)) -v0 -shared T4464H.hs T4464B.c  -optc-DRTSOPTS=RtsOptsAll -o HS4464.dll
 	'$(TEST_HC)' $(filter-out -rtsopts,$(TEST_HC_OPTS)) -v0 T4464C.c HS4464.dll.a -o t4464.exe -no-hs-main
 	./t4464.exe
+	echo "====="
+	echo "=====" >&2
+	$(RM) T4464B.o T4464C.o T4464H.hi T4464H.o
+	$(RM) T4464H_stub.c T4464H_stub.h T4464H_stub.o
+	$(RM) HS4464.dll HS4464.dll.a t4464.exe
+	'$(TEST_HC)' $(filter-out -rtsopts,$(TEST_HC_OPTS)) -v0 -dynamic -shared T4464H.hs T4464B.c  -optc-DRTSOPTS=RtsOptsAll -o HS4464.dll
+	'$(TEST_HC)' $(filter-out -rtsopts,$(TEST_HC_OPTS)) -v0 -dynamic T4464C.c -o t4464.exe -no-hs-main -L. -lHS4464
+	./t4464.exe
 
 .PHONY: T5373
 T5373:
diff --git a/tests/dynlibs/T4464.stderr b/tests/dynlibs/T4464.stderr
index 0ec9bb9..89d3fa5 100644
--- a/tests/dynlibs/T4464.stderr
+++ b/tests/dynlibs/T4464.stderr
@@ -2,3 +2,5 @@ Creating library file: HS4464.dll.a
 ghcDll: Most RTS options are disabled. Link with -rtsopts to enable them.
 =====
 Creating library file: HS4464.dll.a
+=====
+Creating library file: HS4464.dll.a
diff --git a/tests/dynlibs/T4464.stdout b/tests/dynlibs/T4464.stdout
index 68a1093..cbabaff 100644
--- a/tests/dynlibs/T4464.stdout
+++ b/tests/dynlibs/T4464.stdout
@@ -1,2 +1,4 @@
 =====
 f 12 = 13
+=====
+f 12 = 13
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.