Neil Jerram
53a79cd060
Fix implementation of %fast-slot-ref and %fast-slot-set!
...
* libguile/goops.c (scm_sys_fast_slot_ref, scm_sys_fast_slot_set_x):
Correct incantation for getting the number of slots of the specified
instance.
* libguile/goops.h (SCM_NUMBER_OF_SLOTS): Removed (because wrong).
* test-suite/standalone/test-fast-slot-ref.in: New standalone test.
* configure.in: Generate test-suite/standalone/test-fast-slot-ref.
* test-suite/standalone/Makefile.am (check_SCRIPTS): Add
test-fast-slot-ref.
2009-01-04 22:41:51 +00:00
Ludovic Courtès
f36b070b65
Fix comments in `test-scm-c-read.c'.
...
* test-suite/standalone/test-scm-c-read.c (make_port): Fix comments.
2008-11-24 09:41:50 +01:00
Ludovic Courtès
86b9e1d9c9
Add C unit test for `scm_c_read ()' and the port API.
...
* test-suite/standalone/Makefile.am (check_PROGRAMS, TESTS): Add
`test-scm-c-read'.
(test_scm_c_read_SOURCES, test_scm_c_read_CFLAGS,
test_scm_c_read_LDADD): New.
2008-11-23 22:44:41 +00:00
Ludovic Courtès
cd1a1e47b5
Update the thread stack base when `scm_with_guile' is invoked multiple times.
...
* NEWS: Update.
* libguile/threads.c (scm_i_init_thread_for_guile): When the thread is
already guilified, update `t->base' so that it corresponds to the new
stack base. Bug report and patch by Linas Vepstas <linasvepstas@gmail.com>.
* test-suite/standalone/Makefile.am (test_scm_with_guile_CFLAGS,
test_scm_with_guile_LDADD): New.
(check_PROGRAMS, TESTS): Add `test-scm-with-guile'.
2008-11-14 00:35:32 +01:00
Ludovic Courtès
b578508acd
Augment `.gitignore'.
2008-11-13 23:33:42 +01:00
Neil Jerram
05675184ee
Avoid Stack overflow' errors when running
make check'
...
For explanation, see comments and text in the new file
libguile/measure-hwm.scm.
* .gitignore: Add libguile/stack-limit-calibration.scm.
* check-guile.in: Load libguile/stack-limit-calibration.scm.
* configure.in: Add AC_CONFIG_FILES to generate test-use-srfi from
test-use-srfi.in.
* libguile/Makefile.am (TESTS, TESTS_ENVIRONMENT,
stack-limit-calibration.scm): New targets, so that `make check'
calibrates the stack limit before running the Guile test suite.
* libguile/measure-hwm.scm: New file, calibrates stack limit for `make
check'.
* libguile/stackchk.c (scm_sys_get_stack_size): New primitive.
* libguile/stackchk.h (scm_sys_get_stack_size): New primitive
(declaration).
* test-suite/standalone/test-use-srfi: Renamed test-use-srfi.in, so
that ./configure can fill in variables in it.
* test-suite/standalone/test-use-srfi.in: Load
libguile/stack-limit-calibration.scm.
2008-10-17 22:02:17 +01:00
Ludovic Courtès
972b5d7045
Include <config.h> in standalone tests.
...
* test-suite/standalone/Makefile.am (test_cflags): Add `-I$(top_builddir)' so
that <config.h> can be found.
(snarfcppopts): Likewise.
* test-suite/standalone/*.c: Include <config.h>.
2008-09-13 20:12:10 +02:00
Ludovic Courtès
365db7e640
Remove `.cvsignore' files.
2008-09-11 21:48:53 +02:00
Ludovic Courtès
cfabe1e2e4
Revert "Add `SCM_INTERNAL' macro, use it."
...
This reverts commit f0c64044d3
.
2008-09-04 20:26:55 +02:00
Ludovic Courtès
10a529b027
Use `-q' when running standalone tests.
2008-07-06 23:58:15 +02:00
Ludovic Courtès
90e97a7b4b
Support systems whose <inttypes.h> doesn't define `PRIiMAX'.
2008-06-02 21:51:16 +02:00
Ludovic Courtès
f0c64044d3
Add `SCM_INTERNAL' macro, use it.
2008-05-31 23:16:41 +02:00
Ludovic Courtès
e16733a84a
Only run `test-with-guile-module' when pthread support is built.
2008-04-26 21:55:29 +02:00
Ludovic Courtès
5e8130efc3
Fix "#include" directives in stand-alone C tests.
2008-04-08 00:15:06 +02:00
Ludovic Courtès
8422eb9290
More `.gitignore'.
2008-04-07 23:48:08 +02:00
Ludovic Courtès
792ebd5dc4
Honor $TMPDIR in the test suite.
2008-03-13 13:56:43 +00:00
Neil Jerram
1adbcd2eaa
Updated to GNU coding
...
standards; added standard license statement.
2008-02-23 18:08:24 +00:00
Neil Jerram
5826bf6572
Release stuff: missing NEWS and 2007/2008 copyrights.
2008-02-15 22:37:52 +00:00
Neil Jerram
a06872c2bc
* modules.c (the_root_module): Moved before scm_current_module.
...
(scm_current_module): Return the root module if `the-module' fluid
gives #f.
* standalone/Makefile.am: Add stanza for test-with-guile-module.
* standalone/test-with-guile-module.c: New test.
2008-02-01 22:47:53 +00:00
Neil Jerram
95da7a8613
(top level): Explain the point of this test.
2007-12-29 12:33:18 +00:00
Neil Jerram
276cff1a52
* standalone/test-bad-identifiers: New test.
...
* standalone/Makefile.am (check_SCRIPTS, TESTS): Add it.
2007-12-29 01:34:19 +00:00
Neil Jerram
6f640c9f22
* tests/eval.test (promises)[unmemoizing a promise]: New test.
...
* tests/continuations.test ("continuations"): Use
with-debugging-evaluator.
* standalone/test-use-srfi: Use -q to avoid picking up the user's
~/.guile file
* lib.scm (with-debugging-evaluator*, with-debugging-evaluator):
New utilities.
2007-10-19 22:07:31 +00:00
Ludovic Courtès
02e73552f1
Changes from arch/CVS synchronization
2007-10-10 20:21:25 +00:00
Neil Jerram
bdfa7cf284
(check_SCRIPTS): Add test-use-srfi, so
...
that it gets into the distribution.
2007-02-20 21:52:09 +00:00
Kevin Ryde
da02cfaf82
* standalone/test-use-srfi: New test.
...
* standalone/Makefile.am (TESTS): Add it.
2006-12-08 21:28:02 +00:00
Kevin Ryde
2bf20ee77a
More of:
...
New test.
2006-12-08 21:20:28 +00:00
Kevin Ryde
14097f28ad
New test.
2006-12-08 20:29:12 +00:00
Kevin Ryde
17e01ff257
(test_cflags): Change from := to plain =, as
...
the former is not portable (according to automake).
2006-12-02 23:09:03 +00:00
Kevin Ryde
2c70341b70
(.x): Change from %.c %.x style to .c.x style
...
since the former is a GNU make extension. (Rule now as per
libguile/Makefile.am.)
2006-12-02 23:07:43 +00:00
Kevin Ryde
4a7ad916fd
Use "&& exit 1" instead of "!" to
...
invert the sense of exit statuses, as the latter doesn't work on
Solaris 10. Reported by Claes Wallin.
2006-07-25 00:39:18 +00:00
Kevin Ryde
158d3dac8a
Use scm_boot_guile rather than scm_init_guile, for the benefit of
...
those systems where we can't implement the latter.
2006-07-25 00:22:45 +00:00
Neil Jerram
e8c6c6ab28
*** empty log message ***
2006-03-10 23:06:45 +00:00
Marius Vollmer
0ab652a386
Added 2006 to copyright years in every file, as per the new rules.
2006-02-12 13:42:52 +00:00
Kevin Ryde
d7a88afe37
Add test-list.c
2006-02-03 23:38:51 +00:00
Kevin Ryde
2948fc75bd
standalone/test-list.c: New file.
2006-02-03 23:34:48 +00:00
Marius Vollmer
661ae7ab6b
Renamed the "frames" that are related to dynamic-wind to "dynamic
...
contexts. Renamed all functions from scm_frame_ to scm_dynwind_.
Updated documentation.
2006-01-29 00:23:28 +00:00
Marius Vollmer
c70c62a636
Do nothing when deprecated things are
...
disabled.
2005-06-12 12:31:33 +00:00
Marius Vollmer
92205699d0
The FSF has a new address.
2005-05-23 19:57:22 +00:00
Rob Browning
f7fb2f39a4
*** empty log message ***
2005-02-12 06:15:51 +00:00
Rob Browning
8768170784
(check_SCRIPTS): add test-require-extension.
...
(TESTS): add test-require-extension.
2005-02-12 06:15:25 +00:00
Rob Browning
b0f2a9b400
* standalone/test-require-extension: new test script.
2005-02-12 06:15:07 +00:00
Kevin Ryde
4858610b00
(check_cont): Cast rewindable to long, to
...
avoid warning from gcc 3.4 on 64-bit systems about casting int
(32-bits) to pointer (64-bits).
2005-01-24 00:07:01 +00:00
Marius Vollmer
7108b7b8b2
(AM_LDFLAGS, LD_FLAGS): Use AM_LDFLAGS
...
instead of LDFLAGS; the latter is a user variable.
2004-09-25 00:09:45 +00:00
Marius Vollmer
ae90bbb5b9
(test_cflags, LDFLAGS): Include
...
GUILE_CFLAGS.
2004-09-24 01:30:23 +00:00
Marius Vollmer
ad6dec055f
Avoid the use of discouraged or deprecated things.
2004-08-19 17:28:53 +00:00
Marius Vollmer
9bd10f4617
(test_locale_strings): New.
2004-08-10 15:45:49 +00:00
Marius Vollmer
ee3e40b78e
Replaced all uses of scm_round with scm_c_round.
2004-08-10 12:19:49 +00:00
Marius Vollmer
b8f63daff4
Only perform the tests when the disabled features are enabled.
2004-08-03 15:07:23 +00:00
Marius Vollmer
eae5018eff
(test_to_double, test_from_double): New tests.
2004-08-03 15:06:51 +00:00
Marius Vollmer
3838c384d1
Many more tests for the integer conversion functions.
2004-07-29 14:13:59 +00:00