[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.0-110-gf80ed
From: |
Andy Wingo |
Subject: |
[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.0-110-gf80ed1b |
Date: |
Thu, 17 Mar 2011 17:53:10 +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=f80ed1be36b9ff86291e7103488aeb06ab9c092e
The branch, stable-2.0 has been updated
via f80ed1be36b9ff86291e7103488aeb06ab9c092e (commit)
from 95f5e303bc7f6174255b12fd1113d69364863762 (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 f80ed1be36b9ff86291e7103488aeb06ab9c092e
Author: Andy Wingo <address@hidden>
Date: Thu Mar 17 18:53:11 2011 +0100
add multibyte regexp test
* test-suite/standalone/Makefile.am:
* test-suite/standalone/test-mb-regexp: New test, that the previous
patch fixed the abort() on fixup_multibyte_match.
-----------------------------------------------------------------------
Summary of changes:
test-suite/standalone/Makefile.am | 4 +++
.../standalone/test-mb-regexp | 28 +++++++++++++++----
2 files changed, 26 insertions(+), 6 deletions(-)
copy module/language/elisp/runtime/value-slot.scm =>
test-suite/standalone/test-mb-regexp (56%)
mode change 100644 => 100755
diff --git a/test-suite/standalone/Makefile.am
b/test-suite/standalone/Makefile.am
index d839e23..b21edd2 100644
--- a/test-suite/standalone/Makefile.am
+++ b/test-suite/standalone/Makefile.am
@@ -143,6 +143,10 @@ TESTS += test-loose-ends
check_SCRIPTS += test-fast-slot-ref
TESTS += test-fast-slot-ref
+# test-mb-regexp
+check_SCRIPTS += test-mb-regexp
+TESTS += test-mb-regexp
+
# test-use-srfi
check_SCRIPTS += test-use-srfi
TESTS += test-use-srfi
diff --git a/module/language/elisp/runtime/value-slot.scm
b/test-suite/standalone/test-mb-regexp
old mode 100644
new mode 100755
similarity index 56%
copy from module/language/elisp/runtime/value-slot.scm
copy to test-suite/standalone/test-mb-regexp
index c6cc3b4..b0cca69
--- a/module/language/elisp/runtime/value-slot.scm
+++ b/test-suite/standalone/test-mb-regexp
@@ -1,6 +1,9 @@
-;;; Guile Emacs Lisp
-
-;;; Copyright (C) 2009, 2010 Free Software Foundation, Inc.
+#!/bin/sh
+exec guile -q -s "$0" "$@"
+!#
+;;; test-mb-regexp --- A multibyte regexp test
+;;;
+;;; Copyright (C) 2010, 2011 Free Software Foundation, Inc.
;;;
;;; This library is free software; you can redistribute it and/or
;;; modify it under the terms of the GNU Lesser General Public
@@ -16,8 +19,21 @@
;;; License along with this library; if not, write to the Free Software
;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
-;;; Code:
+;; This test depends on not setting the locale -- that multibyte strings
+;; don't trigger the abort in regexp.c:fixup_multibyte_match.
+
+(use-modules (ice-9 regex))
-(define-module (language elisp runtime value-slot))
+(exit (if (equal?
+ (match:substring
+ (regexp-exec
+ (make-regexp "(.)(.)(.)")
+ (string (integer->char 200) #\x (integer->char 202)))
+ 2)
+ "x")
+ 0
+ 1))
-;;; This module contains the value-slots of elisp symbols.
+;; Local Variables:
+;; mode: scheme
+;; End:
hooks/post-receive
--
GNU Guile
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.0-110-gf80ed1b,
Andy Wingo <=