components/guile/patches/fix-tests.patch
author Rich Burridge <rich.burridge@oracle.com>
Thu, 07 Jan 2016 13:22:27 -0800
changeset 5243 cb29cf94919d
parent 3725 57a3df1e928a
permissions -rw-r--r--
PSARC 2015/152 serf - High-performance asynchronous HTTP client library 20780708 We should integrate serf into Solaris

Fix the guile "libtest-asmobs" test based on the checkin at:

http://git.savannah.gnu.org/gitweb/?p=guile.git;a=commitdiff;h=5b98517a652ea51cbb0fd03e87a50c0b3add9707

--- guile-1.8.6/test-suite/standalone/Makefile.in.orig	2015-02-03 06:36:37.592289075 -0800
+++ guile-1.8.6/test-suite/standalone/Makefile.in	2015-02-03 06:37:38.135679120 -0800
@@ -372,7 +372,9 @@
 	test-bad-identifiers test-asmobs test-use-srfi
 BUILT_SOURCES = test-asmobs-lib.x
 EXTRA_DIST = $(am__append_3) ${check_SCRIPTS}
-TESTS_ENVIRONMENT = "${top_builddir}/pre-inst-guile-env"
+TESTS_ENVIRONMENT = \
+  builddir="$(builddir)" \
+  "${top_builddir}/pre-inst-guile-env"
 test_cflags = \
   -I$(top_srcdir)/test-suite/standalone		\
   -I$(top_srcdir) -I$(top_builddir)		\
--- guile-1.8.6/test-suite/standalone/test-asmobs.orig	2015-02-03 06:42:27.703314819 -0800
+++ guile-1.8.6/test-suite/standalone/test-asmobs	2015-02-03 06:38:10.485164432 -0800
@@ -2,7 +2,8 @@
 exec guile -q -s "$0" "$@"
 !#
 
-(load-extension "libtest-asmobs" "libtest_asmobs_init")
+(load-extension (string-append (getenv "builddir") "/libtest-asmobs")
+                "libtest_asmobs_init")
 
 (define (test x v)
   (if v