Florian Margaine
09899a3e15
Fix INCF on a THE variable.
...
The following code:
(let ((foo 0))
(incf (the fixnum foo) (bar)))
was being expanded into:
(let ((foo 0))
(LET* ((#:G133 (BAR)) (#:G132 (THE FIXNUM (+ (THE FIXNUM FOO) (BAR)))))
(DECLARE (:READ-ONLY #:G133))
(SETQ FOO (THE FIXNUM #:G132))))
Which is obviously going to call (BAR) twice. If (BAR) has
side-effects, then it is going to be buggy.
The old define-modify-macro had an issue with out-of-order INCF/DECF,
which is why it was replaced with Bruno Haible's macro, which is
supposed to improve THE handling. It turns out that the improvement is
a bit broken, so we're just fixing this.
Fixes #401 .
2017-09-08 11:57:07 +02:00
Daniel Kochmanski
fff97049ff
environ: add regression tests
...
Fixes #298 .
2017-09-05 20:35:44 +02:00
Daniel Kochmanski
ef3b40427d
tests: add regression test for #400
2017-08-16 22:31:00 +02:00
Daniel Kochmanski
45d5176c0e
tests: add test for expansions of mapcar and vector-push
2017-08-10 20:22:12 +02:00
Daniel Kochmanski
beefd56f56
tests: add test for artificial fpe
2017-08-10 19:28:33 +02:00
Daniel Kochmanski
e0fd6ab22c
tests: fix tests for vector-push
2017-08-10 19:28:20 +02:00
Daniel Kochmanski
c6b2fb658e
tests: add regression test for run-program
...
Dummy one checking if external-process-status simply finishes.
2017-07-21 15:39:43 +02:00
Fabrizio Fabbri
604c87126d
cmp: #353 fix vector-push vector-push-extend
...
When call those function with invalid argument
number the generated code instead of signal
a programming error does SIGSEGV
2017-07-06 10:44:34 +02:00
Fabrizio Fabbri
cc442ac9cd
Compiled assoc does not check arguments
2017-07-04 04:59:37 +02:00
Daniel Kochmański
243646104b
cosmetic: remove unused macro
2017-07-02 23:12:12 +02:00
Daniel Kochmański
b1462dcb65
cosmetic: remove extra newline
2017-07-02 23:05:21 +02:00
Daniel Kochmański
c999b56ab5
tests: add regression test for #233 .
2017-07-02 23:04:25 +02:00
Daniel Kochmański
cc332a6c3f
tests: with-compiler: add todo
2017-07-02 23:03:43 +02:00
Daniel Kochmański
aeaa3017bc
tests: fix multiple evaluation of forms
2017-07-02 23:03:29 +02:00
Daniel Kochmański
8fd53c6470
Merge branch 'develop' into 'develop'
...
Inconsistent and missing checks in binding forms
See merge request !74
2017-06-29 10:16:27 +00:00
Fabrizio Fabbri
6dc40c869c
Signal error on invalid constant type checking.
...
Side effet was SIGSEGV on compiled code.
2017-06-28 15:58:20 +02:00
Kris Katterjohn
9051af7e60
Rename a constant variable to prevent "make check" failures
...
Commit 745686 prevents LET from binding constant variables, but this
sometimes caused a problem during "make check". The problem would
only happen sometimes, depending on the order in which the tests were
run. cmp.0026.defconstant-warn defines a constant variable named
FOO and cmp.0015.setf-expander binds FOO using LET. Now rename the
constant variable FOO to +FOO+.
"make check" runs fine
2017-06-27 19:31:52 -05:00
Daniel Kochmanski
3fdb362b21
cleanup: add information about removed interface
...
Closes #380 .
2017-05-13 18:10:23 +02:00
Daniel Kochmanski
72e422f1b3
cleanup: remove hierarchical packages interface
...
It didn't work for some cases and wasn't documented, so I'm removing
it. Freshly written tests are left in tests for someone, who would
like to reimplement them.
2017-05-13 18:06:26 +02:00
Daniel Kochmanski
9fa54cc66a
tests: add commented out test for issue #380
2017-05-13 17:30:12 +02:00
Daniel Kochmanski
caee827c58
tests: check for feature
2017-05-02 15:01:07 +02:00
Daniel Kochmanski
635cf82e48
add final test
2017-05-02 10:02:48 +02:00
Daniel Kochmanski
76d47a45a2
tests: add tests for package local nicknames
2017-05-02 08:51:38 +02:00
Daniel Kochmanski
2c5f0028c8
hash tables: add mundane tests for sync ht
...
we replace internal functions for get/set/rem, so we add tests which
check if basic functionality still works fine.
2017-04-28 22:54:15 +02:00
Daniel Kochmanski
57bdf6e989
hash-table: add synchronization implementation
2017-04-28 22:09:12 +02:00
Daniel Kochmanski
c88af87046
fix typo (missing paren)
2017-04-28 22:05:44 +02:00
Daniel Kochmanski
9ba5934fff
hash-tables: add hash-table test suite
...
For now it tests only weakness.
2017-04-28 18:15:47 +02:00
Daniel Kochmański
925196c453
signals: remove sigchld handling
...
It caused races with waitpid previously masked by fast code in
unixsys.d.
2017-03-23 15:43:59 +01:00
Daniel Kochmanski
bc9b33168c
test: sigchld-handler: adjust for cygwin
2017-03-20 22:15:42 +01:00
Daniel Kochmański
135a43a027
tests: run-program: add status-hook tests
2017-03-20 21:05:13 +01:00
Daniel Kochmanski
d6c8fec000
tests: run-program: test more stream cases
2017-03-19 21:28:32 +01:00
Daniel Kochmański
7a76c928f3
run-program: tests: fix typo
2017-03-18 09:52:22 +01:00
Daniel Kochmanski
1651219474
tests: run-program: windows: fix terminate answers
2017-03-17 12:21:21 +01:00
Daniel Kochmanski
716ab71010
windows: fix make check
2017-03-17 11:53:52 +01:00
Daniel Kochmański
4256ac7e2b
tests: run-program: add test for escape-arguents (windows)
2017-03-17 09:37:08 +01:00
Daniel Kochmański
656696e62a
tests: run-program: add test for various values for streams
2017-03-17 09:32:03 +01:00
Daniel Kochmański
58a705cf69
Revert "tests: adjust to windows"
...
This reverts commit 7a16333f4a .
2017-02-21 07:42:48 +01:00
Daniel Kochmański
7a16333f4a
tests: adjust to windows
2017-02-20 17:43:37 +01:00
Daniel Kochmański
6733369ea0
run-program: refine tests
2017-02-20 15:53:56 +01:00
Daniel Kochmański
8e537800d8
cosmetic
2017-02-20 15:26:50 +01:00
Daniel Kochmański
ccacf11cbc
run-program: add preliminary test suite
2017-02-20 15:22:41 +01:00
Daniel Kochmański
d992b886c7
tests: add regression test for #351
2017-02-04 12:49:52 +01:00
Daniel Kochmański
e44e7877d9
tests: improve without-fpe-traps
2017-01-21 09:26:44 +01:00
Fabrizio Fabbri
71c0e0da48
osx: fix #349 IEEE-FP.0005.ATAN2-SPECIAL-CASE.ZERO-ARG
...
On OSX signals overflow (instead of division-by-zero).
2017-01-21 00:37:28 +01:00
Daniel Kochmański
5cdfad11da
tests: improve regression test for #348 .
...
add case for tagbody
2017-01-20 11:26:45 +01:00
Daniel Kochmański
7a00e99423
tests: shim style-warning that s is not used in a body
...
(By adding usage, which won't be optimized away).
2017-01-20 09:34:53 +01:00
Daniel Kochmański
60a757e056
tests: add regression test for #348 .
2017-01-20 08:18:12 +01:00
Daniel Kochmański
b142edb301
tests: mix.0013: fix for osx
...
OSX behaves slightly different. Related to #349 .
2017-01-20 07:34:21 +01:00
Daniel Kochmański
bfeec4aa21
atan: ieee: polish tests
2016-12-23 08:55:45 +01:00
Daniel Kochmański
6d627a3fd9
tests: add approx= function
2016-12-23 08:55:27 +01:00