scheme-bytestructures
scheme-bytestructures copied to clipboard
Alignment-specific tests fails on i386
On i386 the tests fail (I ran into this with Guile Scheme):
$ make check
./pre-inst-env \
/usr/bin/guile --no-auto-compile \
./run-tests.guile.scm
%%%% Starting test bytestructures (Writing full log to "bytestructures.log")
run-tests.body.scm:194: FAIL ref1
Backtrace:
7 (primitive-load "/home/soeren/src/aports/testing/guile-…")
In ice-9/eval.scm:
619:8 6 (_ #f)
In ice-9/boot-9.scm:
142:2 5 (dynamic-wind #<procedure 8555c0 at ice-9/eval.scm:330…> …)
142:2 4 (dynamic-wind #<procedure 86f7f0 at ice-9/eval.scm:330…> …)
In ice-9/eval.scm:
619:8 3 (_ #(#(#<directory (guile-user) cf690>)))
In ice-9/boot-9.scm:
142:2 2 (dynamic-wind #<procedure 871a40 at ice-9/eval.scm:330…> …)
In ice-9/eval.scm:
619:8 1 (_ #(#(#(#<directory (guile-user) cf690>)) #<variable…>))
In unknown file:
0 (bytevector-u64-native-set! #vu8(0 0 0 0 0 0 0 0 65 1 …) …)
ERROR: In procedure bytevector-u64-native-set!:
In procedure bytevector-u64-native-set!: Value out of range: 8
make: *** [Makefile:779: check] Error 1
The following test case fails:
https://github.com/TaylanUB/scheme-bytestructures/blob/8f57febd63ac09e8ed528eefd656461a398b0b4d/run-tests.body.scm#L183-L194
My educated guess is that this because bs
is not a packed struct and the way bs
is packed on i386 differs from other architectures. Since the test is—as is—not portable it would probably be best to remove it?
Full build log: bytestructures.log