[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] GNU Guile branch, wip-1-8-mingw-build, updated. release_
From: |
Neil Jerram |
Subject: |
[Guile-commits] GNU Guile branch, wip-1-8-mingw-build, updated. release_1-8-7-22-g7edad77 |
Date: |
Fri, 05 Mar 2010 23:43:56 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".
http://git.savannah.gnu.org/cgit/guile.git/commit/?id=7edad77c2e675a508ae04a97a689dfc1b9b74546
The branch, wip-1-8-mingw-build has been updated
via 7edad77c2e675a508ae04a97a689dfc1b9b74546 (commit)
via f41529c37b4a740aa555741ca78faa55fafcb3c0 (commit)
from e60fa93d3057a54b0ebedec4c9665541e834f609 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7edad77c2e675a508ae04a97a689dfc1b9b74546
Author: Neil Jerram <address@hidden>
Date: Tue Mar 2 23:45:27 2010 +0000
On MinGW, return #t instead of calling system (NULL)
* libguile/simpos.c (scm_system): On MinGW avoid call system (NULL),
return hardcoded #t instead.
commit f41529c37b4a740aa555741ca78faa55fafcb3c0
Author: Neil Jerram <address@hidden>
Date: Tue Mar 2 23:23:52 2010 +0000
Make test scripts check GUILE environment variable
So that they use the guile (or guile.exe, in the MinGW case) that was
just built, and not just any guile that can be found in the PATH.
* test-suite/standalone/test-asmobs: Use ${GUILE:-guile} instead of
guile.
* test-suite/standalone/test-bad-identifiers: Ditto.
* test-suite/standalone/test-fast-slot-ref.in: Ditto.
* test-suite/standalone/test-require-extension: Ditto.
* test-suite/standalone/test-system-cmds: Ditto.
* test-suite/standalone/test-use-srfi.in: Ditto.
-----------------------------------------------------------------------
Summary of changes:
libguile/simpos.c | 7 +++++++
test-suite/standalone/test-asmobs | 2 +-
test-suite/standalone/test-bad-identifiers | 2 +-
test-suite/standalone/test-fast-slot-ref.in | 2 +-
test-suite/standalone/test-require-extension | 10 +++++-----
test-suite/standalone/test-system-cmds | 2 +-
test-suite/standalone/test-use-srfi.in | 6 +++---
7 files changed, 19 insertions(+), 12 deletions(-)
diff --git a/libguile/simpos.c b/libguile/simpos.c
index 402e4dc..c4e019c 100644
--- a/libguile/simpos.c
+++ b/libguile/simpos.c
@@ -69,8 +69,15 @@ SCM_DEFINE (scm_system, "system", 0, 1, 0,
if (SCM_UNBNDP (cmd))
{
+#ifdef __MINGW32__
+ /* MinGW doesn't support system (NULL), so we hardcode #t
+ instead. When is a command processor ever not available,
+ anyway? */
+ return SCM_BOOL_T;
+#else
rv = system (NULL);
return scm_from_bool(rv);
+#endif
}
SCM_VALIDATE_STRING (1, cmd);
errno = 0;
diff --git a/test-suite/standalone/test-asmobs
b/test-suite/standalone/test-asmobs
index 9689ab9..a8dd26b 100755
--- a/test-suite/standalone/test-asmobs
+++ b/test-suite/standalone/test-asmobs
@@ -1,5 +1,5 @@
#!/bin/sh
-exec guile -q -s "$0" "$@"
+exec ${GUILE:-guile} -q -s "$0" "$@"
!#
(load-extension (string-append (getenv "builddir") "/libtest-asmobs")
diff --git a/test-suite/standalone/test-bad-identifiers
b/test-suite/standalone/test-bad-identifiers
index e7af5a1..5964d1c 100755
--- a/test-suite/standalone/test-bad-identifiers
+++ b/test-suite/standalone/test-bad-identifiers
@@ -1,5 +1,5 @@
#!/bin/sh
-exec guile -q -s "$0" "$@"
+exec ${GUILE:-guile} -q -s "$0" "$@"
!#
;; The use of certain identifiers as variable or parameter names has
diff --git a/test-suite/standalone/test-fast-slot-ref.in
b/test-suite/standalone/test-fast-slot-ref.in
index 5bd0638..e9b30dc 100644
--- a/test-suite/standalone/test-fast-slot-ref.in
+++ b/test-suite/standalone/test-fast-slot-ref.in
@@ -25,7 +25,7 @@
# executing the (%fast-slot-ref i 3) line. For reasons as yet
# unknown, it does not cause a segmentation fault if the same code is
# loaded as a script; that is why we run it here using "guile -q <<EOF".
-exec guile -q -l @top_builddir_absolute@/libguile/stack-limit-calibration.scm
>/dev/null 2>&1 <<EOF
+exec ${GUILE:-guile} -q -l
@top_builddir_absolute@/libguile/stack-limit-calibration.scm >/dev/null 2>&1
<<EOF
(use-modules (oop goops))
(define-module (oop goops))
(define-class <c> () (a #:init-value 1) (b #:init-value 2) (c #:init-value 3))
diff --git a/test-suite/standalone/test-require-extension
b/test-suite/standalone/test-require-extension
index 69f1858..ff5c986 100755
--- a/test-suite/standalone/test-require-extension
+++ b/test-suite/standalone/test-require-extension
@@ -7,12 +7,12 @@ set -e
# (Note the syntax "! guile -c ..." isn't used here, because that doesn't
# work on Solaris 10.)
#
-guile -q -c '(require-extension 7)' 2>/dev/null && exit 1
-guile -q -c '(require-extension (blarg))' 2>/dev/null && exit 1
-guile -q -c '(require-extension (srfi "foo"))' 2>/dev/null && exit 1
+${GUILE:-guile} -q -c '(require-extension 7)' 2>/dev/null && exit 1
+${GUILE:-guile} -q -c '(require-extension (blarg))' 2>/dev/null && exit 1
+${GUILE:-guile} -q -c '(require-extension (srfi "foo"))' 2>/dev/null && exit 1
# expect these to succeed
-guile -q -c '(require-extension (srfi 1)) (exit (procedure? take-right))'
-guile -q -c '(require-extension (srfi))'
+${GUILE:-guile} -q -c '(require-extension (srfi 1)) (exit (procedure?
take-right))'
+${GUILE:-guile} -q -c '(require-extension (srfi))'
exit 0
diff --git a/test-suite/standalone/test-system-cmds
b/test-suite/standalone/test-system-cmds
index f500729..995a4ea 100755
--- a/test-suite/standalone/test-system-cmds
+++ b/test-suite/standalone/test-system-cmds
@@ -1,5 +1,5 @@
#!/bin/sh
-exec guile -q -s "$0" "$@"
+exec ${GUILE:-guile} -q -s "$0" "$@"
!#
(define (test-system-cmd)
diff --git a/test-suite/standalone/test-use-srfi.in
b/test-suite/standalone/test-use-srfi.in
index 57f84af..4ec0c20 100755
--- a/test-suite/standalone/test-use-srfi.in
+++ b/test-suite/standalone/test-use-srfi.in
@@ -19,7 +19,7 @@
# Test that two srfi numbers on the command line work.
#
-guile -q -l @top_builddir_absolute@/libguile/stack-limit-calibration.scm
--use-srfi=1,10 >/dev/null <<EOF
+${GUILE:-guile} -q -l
@top_builddir_absolute@/libguile/stack-limit-calibration.scm --use-srfi=1,10
>/dev/null <<EOF
(if (and (defined? 'partition)
(defined? 'define-reader-ctor))
(exit 0) ;; good
@@ -38,7 +38,7 @@ fi
# `top-repl' the core bindings got ahead of anything --use-srfi gave.
#
-guile -q -l @top_builddir_absolute@/libguile/stack-limit-calibration.scm
--use-srfi=1 >/dev/null <<EOF
+${GUILE:-guile} -q -l
@top_builddir_absolute@/libguile/stack-limit-calibration.scm --use-srfi=1
>/dev/null <<EOF
(catch #t
(lambda ()
(iota 2 3 4))
@@ -56,7 +56,7 @@ fi
# exercises duplicates handling in `top-repl' versus `use-srfis' (in
# boot-9.scm).
#
-guile -q -l @top_builddir_absolute@/libguile/stack-limit-calibration.scm
--use-srfi=17 >/dev/null <<EOF
+${GUILE:-guile} -q -l
@top_builddir_absolute@/libguile/stack-limit-calibration.scm --use-srfi=17
>/dev/null <<EOF
(if (procedure-with-setter? car)
(exit 0) ;; good
(exit 1)) ;; bad
hooks/post-receive
--
GNU Guile
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Guile-commits] GNU Guile branch, wip-1-8-mingw-build, updated. release_1-8-7-22-g7edad77,
Neil Jerram <=