1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-02 13:00:26 +02:00
Commit graph

20082 commits

Author SHA1 Message Date
Andy Wingo
6dbad81afd Add add-and-branch-on-overflow tests 2019-03-26 15:53:48 +01:00
Andy Wingo
0d0c6b1a4b Add flag-checking test-and-branch tests 2019-03-26 15:25:57 +01:00
Andy Wingo
a021c73438 Add unordered float compare-and-branch tests 2019-03-26 15:22:14 +01:00
Andy Wingo
3d4c22ad33 Add anti-float comparison tests 2019-03-26 15:04:50 +01:00
Andy Wingo
329fc7936c Add int/int reg/imm compare-and-branch tests 2019-03-26 14:53:25 +01:00
Andy Wingo
ab0d17286a Add floating-point reg/reg compare-and-branch tests 2019-03-26 14:43:53 +01:00
Andy Wingo
5a740b9add Add more integer reg/reg branch-and-compare tests 2019-03-26 14:36:33 +01:00
Andy Wingo
52a9ab856d Add bltr test
Also rework how relocs are represented.
2019-03-26 14:21:00 +01:00
Andy Wingo
9adbed9e7a Fix stxi_d bug
Also present in upstream; reported.
2019-03-26 13:44:37 +01:00
Andy Wingo
787305eae5 Tweak test build to run faster, and adapt CI 2019-03-26 12:32:08 +01:00
Andy Wingo
e289f88187 Add .gitlab-ci.yml 2019-03-26 11:25:49 +00:00
Andy Wingo
c5c2b6f518 Add stxi tests 2019-03-26 12:18:46 +01:00
Andy Wingo
552e51ace7 Add stxr tests 2019-03-26 12:18:42 +01:00
Andy Wingo
ee2c6ab806 Add sti tests 2019-03-26 12:03:24 +01:00
Andy Wingo
4fe296b1df Add str tests 2019-03-26 12:00:10 +01:00
Andy Wingo
6f9bbe72c7 Add ldxi tests 2019-03-26 11:34:35 +01:00
Andy Wingo
d917dc2147 Add ldxr tests 2019-03-26 11:24:31 +01:00
Andy Wingo
c6067dd8cb Add ldi tests 2019-03-26 11:16:17 +01:00
Andy Wingo
afd32134f0 Add ldr tests 2019-03-26 11:07:44 +01:00
Andy Wingo
1808239ec8 Add bswap tests, and fix missing breaks in jit_load_args 2019-03-26 10:47:22 +01:00
Andy Wingo
082a629f62 Add extr tests 2019-03-26 10:29:31 +01:00
Andy Wingo
3acf10280b Add mov_addr test 2019-03-26 10:11:12 +01:00
Andy Wingo
ae1394831c Rework naming of test suite files 2019-03-26 10:02:30 +01:00
Andy Wingo
a20146777d Add comr/negr tests 2019-03-26 09:58:33 +01:00
Andy Wingo
7393651653 Add lsh/rsh tests 2019-03-26 09:49:16 +01:00
Andy Wingo
6a6da4a8a5 Add bitops tests 2019-03-26 09:33:40 +01:00
Andy Wingo
0127664fb3 Add remr tests 2019-03-26 09:17:49 +01:00
Andy Wingo
8e0102564a Add more div tests 2019-03-26 09:10:19 +01:00
Andy Wingo
b371e913ff Tests for some div operations 2019-03-25 21:11:44 +01:00
Andy Wingo
56d8f8d6f0 Add more tests 2019-03-25 21:02:24 +01:00
Andy Wingo
823387114a Add new tests 2019-03-25 20:38:23 +01:00
Andy Wingo
94a58a80d2 Add note about current status 2019-03-25 15:39:45 +01:00
Andy Wingo
02ce8952ef Flesh out README 2019-03-25 15:36:12 +01:00
Andy Wingo
f0cecc45d4 Convert tests to jit_load_args 2019-03-25 15:24:40 +01:00
Andy Wingo
df0a5d738f Better loading of args to registers; add tests 2019-03-25 15:08:05 +01:00
Andy Wingo
021f31f1dc Add "addi" test 2019-03-25 12:31:51 +01:00
Andy Wingo
bad7e34c83 Implementation of new design
Documentation to come, as tests get added and things settle down.
2019-03-25 12:21:23 +01:00
Michael Gran
3a64c504ca Disable test for current value of setitimer on Cygwin
* test-suite/tests/signals.test ("current itimers are 0"): throws unresolved
    for cygwin
2019-02-23 23:23:19 -08:00
Michael Gran
2a3ccfb667 Make locale monetary conversion tests be less strict on terminal whitespace
* test-suite/tests/i18n.test (monetary-amount->locale-string): modified
2019-02-23 23:16:31 -08:00
Michael Gran
92105d13ad Handle newlib C library's langinfo constant names
The newlib C library (used in Cygwin) has alternative names for
nl_langinfo GNU extensions

* configure.ac (_NL_NUMERIC_GROUPING): new test
* libguile/i18n.c (INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP)
   (MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, GROUPING, INT_FRAC_DIGITS)
   (FRAC_DIGITS, P_CS_PRECEDES, P_SEP_BY_SPACE, N_CS_PRECEDES, N_SEP_BY_SPACE)
   (P_SIGN_POSN, N_SIGN_POSN, INT_P_CS_PRECEDES, INT_P_SEP_BY_SPACE)
   (INT_N_CS_PRECEDES, INT_N_SEP_BY_SPACE, INT_P_SIGN_POSN, INT_N_SIGN_POSN)
   [HAVE_DECL__NL_NUMERIC_GROUPING]: map to newlib C constants, when present
2019-02-23 16:33:50 -08:00
Michael Gran
9ba449643d Add a fallback value for the locale-monetary-decimal-point
* module/ice-9/i18n.scm (locale-monetary-decimal-point): use "." as fallback
2019-02-23 16:19:05 -08:00
Andy Wingo
2dccec9f55 Fix race when expanding syntax-parameterize and define-syntax-parameter
* module/ice-9/psyntax.scm (put-global-definition-hook)
  (get-global-definition-hook): Inline into uses.
  (make-binding): Change format of lexically defined or rebound syntax
  parameters to just be the transformer, not a list of the transformer.
  (resolve-identifier, expand-install-global, expand-body)
  (syntax-parameterize): Adapt to use the variable object (box) holding
  the top-level syntax parameter as the "key" for lookups into the
  lexical environment, instead of a fresh object associated with the
  syntax transformer.
* module/ice-9/psyntax-pp.scm: Regenerate.

Fixes #27476, a horrible race when one thread is expanding a
syntax-parameterize form including uses, and another thread is expanding
the corresponding define-syntax-parameter.  See
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27476#102.
2019-02-22 15:25:21 +01:00
Andy Wingo
61a8c9300d Fix race when expanding syntax-parameterize and define-syntax-parameter
* libguile/macros.c (scm_i_make_primitive_macro): Give primitive macros
  a primitive-macro macro-type.
* module/ice-9/psyntax.scm (put-global-definition-hook)
  (get-global-definition-hook): Inline into uses.
  (make-binding): Change format of lexically defined or rebound syntax
  parameters to just be the transformer, not a list of the transformer.
  (resolve-identifier, expand-install-global, expand-body)
  (syntax-parameterize): Adapt to use the variable object (box) holding
  the top-level syntax parameter as the "key" for lookups into the
  lexical environment, instead of a fresh object associated with the
  syntax transformer.
* module/ice-9/psyntax-pp.scm: Regenerate.

Fixes #27476, a horrible race when one thread is expanding a
syntax-parameterize form including uses, and another thread is expanding
the corresponding define-syntax-parameter.  See
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27476#102.
2019-02-22 15:11:29 +01:00
Andy Wingo
c537f938d1 Fix linker.test
* test-suite/tests/linker.test (link-elf-with-one-main-section): Adapt
  to change in c9e052be49.
2019-02-22 15:01:01 +01:00
Andy Wingo
27ffbfb023 Fix crypt-on-glibc test error
* test-suite/tests/posix.test ("crypt"): Allow for the given salt being
  valid.  Thanks to Jonathan Brielmaier for the report and debugging!
2019-02-21 11:13:28 +01:00
Mike Gran
78468baa11 Fix binary output on files created by mkstemp!
Some operating systems require a O_BINARY flag.

* libguile/filesys.c (scm_i_mkstemp): Don't mask out O_BINARY flag
* test-suite/tests/posix.test ("binary mode honored"): new test
2019-02-09 16:59:38 -08:00
Mike Gran
1437b76777 Avoid leaking a file descriptor in test-unwind
* test-suite/standalone/test-unwind.c (check_ports): explicitly close temp file
2019-02-09 16:39:19 -08:00
Mike Gran
139c702fc8 Fix strftime compile with null threads
* libguile/stime.c (scm_strftime): use correct pthread lock function
2019-02-09 16:20:13 -08:00
Mike Gran
1ba5d6f47a Remove redefinition of when & unless in snarf-check-and-output-texi
* module/scripts/snarf-check-and-output-texi.scm (when, unless): removed
2019-02-09 09:54:55 -08:00
Mike Gran
552f007e91 Don't mutate read-only string in ports test
* test-suite/tests/ports.test ("valid wide mode string"): modified
2019-02-09 09:44:28 -08:00