Pat Hickey
7a35763d62
collapse two test flags into dangling_filesystem
2021-02-03 14:54:42 -08:00
Pat Hickey
a9639e52a4
publish script: tell me more about the failure please
2021-02-03 14:26:52 -08:00
Pat Hickey
b382a1e0d7
back out wasi-cap-std-sync special test step
2021-02-03 14:23:00 -08:00
Pat Hickey
d62b0a1f97
table keys can wrap around
2021-02-03 11:09:05 -08:00
Kasey Carrothers
7bd96c8e2f
Refactor x64::Insts that use an is_64 bool to use OperandSize.
2021-02-03 10:40:11 -08:00
Kasey Carrothers
3306408100
Refactor x64::Inst to use OperandSize instead of u8s.
...
TODO: some types take a 'is_64_bit' bool. Those are left unchanged for now.
2021-02-03 10:40:11 -08:00
Kasey Carrothers
b12d41bfe9
Expand x64 OperandSize to support 8 and 16-bit operands.
...
This is in preparation for refactoring all x64::Inst arms to use OperandSize.
Current uses of OperandSize fall into two categories:
1. XMM operations which require 32/64 bit operands
2. Immediates which only care about 64-bit or not.
Adds assertions to existing Inst constructors to check that they are passed valid sizes.
This change also removes the implicit widening of 1 and 2 byte values to 4 bytes. from_bytes() is only used by category 2, so removing this behavior will not change any visible behavior.
Overall this change should be a no-op.
2021-02-03 10:40:11 -08:00
Chris Fallin
7aecd6dac9
Merge pull request #2631 from bjorn3/newbe_debuginfo_stackslot_offsets
...
Make the stackslot offsets available for debuginfo
2021-02-03 09:36:55 -08:00
bjorn3
76d615049d
Make the stackslot offsets available for debuginfo
2021-02-03 17:48:52 +01:00
Pat Hickey
b29a3bfbb2
fix warnings
2021-02-02 17:08:58 -08:00
Pat Hickey
857ef411b5
upstream fixes are pending for symlink_create & nofollow_errors on windows
2021-02-02 16:23:57 -08:00
Pat Hickey
cd02e5a942
path_rename: make more concessions for windows. this shit sucks but oh well
2021-02-02 15:30:02 -08:00
Pat Hickey
186360fab2
delete temporary tests
2021-02-02 15:29:50 -08:00
Pat Hickey
a06b23a308
even simpler test case
2021-02-02 13:40:35 -08:00
Pat Hickey
330902f44e
add test for incredibly cursed windows rename behavior
2021-02-02 13:29:56 -08:00
Pat Hickey
47a89d3cc2
cargo update. wanted the latest cap-primitives
2021-02-02 10:44:21 -08:00
Pat Hickey
dec0038ba0
add a readdir unit test to wasi-cap-std-sync
2021-02-01 19:40:24 -08:00
Pat Hickey
80fce7c1c8
unlink behavior on macos...
2021-02-01 19:22:10 -08:00
Pat Hickey
ca657186f2
fix wasmtime doctest
2021-02-01 19:12:20 -08:00
Pat Hickey
544a491639
fail-fast false on the other matrix too
2021-02-01 18:38:06 -08:00
Pat Hickey
e3850752b2
this windows test should be fixed...
2021-02-01 18:37:42 -08:00
Pat Hickey
f48b45784e
remove dead comment
2021-02-01 18:36:49 -08:00
Pat Hickey
a29b5bdcc8
dep to latest, lockfile already has it
2021-02-01 18:36:41 -08:00
Pat Hickey
c77a11bd5c
tests: macos-specific behavior
2021-02-01 18:30:58 -08:00
Pat Hickey
d83dba47a3
fix publish script
2021-02-01 18:16:24 -08:00
Pat Hickey
b59160c3da
docs!
2021-02-01 18:14:26 -08:00
Pat Hickey
58aa98ac8e
cap-std-sync docs
2021-02-01 18:07:05 -08:00
Pat Hickey
7daa7763e0
rustdoc the errors
2021-02-01 18:04:49 -08:00
Pat Hickey
0ef691b74e
rustdocs!!
2021-02-01 18:01:47 -08:00
Pat Hickey
e511dac9ec
rustdoc the table
2021-02-01 17:56:20 -08:00
Pat Hickey
037c5e398c
remove re-exports
2021-02-01 17:44:11 -08:00
Pat Hickey
7919b191ed
fix tests and exports
2021-02-01 17:06:00 -08:00
Pat Hickey
30c5e8c084
DEBUG: turn off fail-fast for wasmtime build matrix, and test wasi-cap-std-sync first
...
the wasi-cap-std-sync test is designed to isolate some weird CI behavior
with EPERM on a preopen
2021-02-01 16:44:06 -08:00
Pat Hickey
f17bff5490
fill in Deterministic impl of RngCore
2021-02-01 16:25:38 -08:00
Pat Hickey
e9ad3611f6
get rid of outdated cfg_attr
2021-02-01 16:16:13 -08:00
Pat Hickey
848be8c932
path_rename should work on windows with TESTCONFIG
2021-02-01 15:50:16 -08:00
Pat Hickey
8e015ca9e7
traps needed stdio
2021-02-01 15:50:05 -08:00
Pat Hickey
bb3e391a27
accept fdread event as valid behavior of stdin poll
2021-02-01 15:26:06 -08:00
Pat Hickey
0c4aec391e
actually empty ready bytes of stdin
2021-02-01 14:43:32 -08:00
Pat Hickey
b9a3f8694d
cap-std-sync test runner: read stdin to end before inheriting stdio
2021-02-01 14:32:51 -08:00
Pat Hickey
40e541bfc3
test suite: cap-std-sync test environment does not support fdflags sync
2021-02-01 14:25:42 -08:00
Pat Hickey
cde252c59b
wasi-cap-std-sync: sync family of flags is not supported on file_open
2021-02-01 14:25:32 -08:00
Pat Hickey
993697e221
set_fd_flags is only good for append and nonblock
2021-02-01 14:14:13 -08:00
Pat Hickey
5ee093e774
Merge remote-tracking branch 'origin/main' into pch/wasi_common_cap_std
2021-02-01 13:21:25 -08:00
Pat Hickey
a4372c8c2e
cap-std-sync: test opening a tempdir as ambient and then WasiDir
2021-02-01 13:15:39 -08:00
Pat Hickey
8b9d2c5bbb
cap-std-sync: my set_fd_flags idea didnt seem to work?
2021-02-01 12:42:31 -08:00
Peter Huene
256cc8a518
Merge pull request #2620 from peterhuene/fix-fd-readdir
...
Fix `fd_readdir` to properly truncate directory entry names.
2021-02-01 12:29:56 -08:00
Peter Huene
0502cadc62
Stop allowing bufused > BUF_LEN in fd_readdir program.
...
This commit removes what appears to be a workaround to the bug being fixed by
the change in #2620 .
2021-02-01 11:41:29 -08:00
Peter Huene
4632228b35
Fix fd_readdir to properly truncate directory entry names.
...
Previously, `fd_readdir` was truncating directory entry names based on the
calculation of `min(name_len, buf_len - bufused)`, but `bufused` was not being
updated after writing in the `dirent` structure to the buffer.
This allowed `bufused` to be incremented beyond `buf_len` and returned as the
number of bytes written to the buffer, which is invalid.
This fix adjusts `bufused` when the buffer is written to for the `dirent` so
that name truncation happens as expected.
Fixes #2618 .
2021-02-01 11:41:12 -08:00
Pat Hickey
bad169dde3
port https://github.com/bytecodealliance/wasmtime/pull/2620 into rewrite
2021-02-01 11:10:26 -08:00