Pat Hickey
c81dbe498f
try upping 20ms to 50ms timeouts...
2021-05-11 17:12:48 -07:00
Pat Hickey
7ec93cb977
poll_oneoff_stdio test: increase timeout to 20ms
2021-05-11 09:22:12 -07:00
Pat Hickey
74e9b385df
lets try 10ms, macos ci timed out with 5ms
2021-05-07 16:07:15 -07:00
Pat Hickey
b450094dad
debug
2021-05-07 15:19:17 -07:00
Pat Hickey
ee8a8a2a90
poll_oneoff_stdio test: loosen up contract
...
permit both readable events to be delivered in very short interval,
rather than simultaneously.
2021-05-07 14:27:23 -07:00
Pat Hickey
9e04c5333c
poll oneoff tests: what if we read a non-empty file?
2021-05-05 13:08:33 -07:00
Pat Hickey
3e8ea090c6
ci debugging
2021-05-05 11:24:27 -07:00
Pat Hickey
b7efcbe80f
jump through enough hoops for the poll lifetime to work out
...
you program rust for a few years and you think you're done tearing your
hair out over lifetimes, well, you'll find yourself wrong
2021-04-29 16:50:22 -07:00
Pat Hickey
02581ddda0
poll_oneoff test: don't try to poll same fd for read and write
2021-04-27 17:41:07 -07:00
Dan Gohman
dd7e16762c
Arrange for the new test to be called.
2021-03-22 12:50:16 -07:00
Dan Gohman
6b40724d18
Support "sleep" forms of poll_oneoff.
...
Add support for `poll_oneoff` calls which just sleep on a relative
timeout. This fixes a bug handling code compiled with WASI libc's `sleep`
family of functions, which call `poll_oneoff` with a `CLOCK_REALTIME`
timer, which wasn't previously implemented.
2021-03-22 12:50:16 -07:00
Dan Gohman
2d3f2adf04
Fix nondeterministic failures in poll_oneoff_stdio.
...
Adjust this test so that it tolerates poll_oneoff returning that both a
timeout occurred and an input is ready for reading, at the same time.
2021-03-15 11:48:19 -07:00
Pat Hickey
9abae356e0
fix!
2021-02-10 16:54:14 -08:00
Pat Hickey
bc95864202
wasi-tests: add path_exists test
...
this *should* reproduce the report at
https://github.com/bytecodealliance/wasmtime/issues/2642 but it does
not, so the problem has something to do with invoking via wasmtime cli?
2021-02-10 16:54:14 -08:00
Pat Hickey
7a35763d62
collapse two test flags into dangling_filesystem
2021-02-03 14:54:42 -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
80fce7c1c8
unlink behavior on macos...
2021-02-01 19:22:10 -08:00
Pat Hickey
c77a11bd5c
tests: macos-specific behavior
2021-02-01 18:30:58 -08:00
Pat Hickey
bb3e391a27
accept fdread event as valid behavior of stdin poll
2021-02-01 15:26:06 -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
5ee093e774
Merge remote-tracking branch 'origin/main' into pch/wasi_common_cap_std
2021-02-01 13:21:25 -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
Pat Hickey
bad169dde3
port https://github.com/bytecodealliance/wasmtime/pull/2620 into rewrite
2021-02-01 11:10:26 -08:00
Pat Hickey
1d057af64d
notes
2021-01-28 13:20:52 -08:00
Pat Hickey
201a888d92
dirty fuckin' dangles boys
...
fuck you shorsey
2021-01-28 13:02:48 -08:00
Pat Hickey
11b8222033
missed a dangling symlink
2021-01-28 12:59:44 -08:00
Pat Hickey
34ad8df169
dangling directories are a windows thing
2021-01-28 12:58:41 -08:00
Pat Hickey
4801ea04a1
cool
2021-01-28 12:36:50 -08:00
Pat Hickey
0cedc17246
another one bites the dust
2021-01-28 12:35:13 -08:00
Pat Hickey
79e8f17486
bum bum bum
2021-01-28 12:30:37 -08:00
Pat Hickey
dae022b17f
woo
2021-01-28 12:29:30 -08:00
Pat Hickey
1196e216e9
fix macro by denying trailing slashes. also other stuff
2021-01-28 12:23:48 -08:00
Pat Hickey
20e9169cc7
fd_allocate: put meat of test behind a guard
2021-01-28 11:43:42 -08:00
Pat Hickey
f7403acb6f
fd_advise test: set size via fd_filestat_set_size and fd_allocate
2021-01-28 11:42:30 -08:00
Pat Hickey
e758318fee
wire env variables through test runner to TESTCONFIG
2021-01-28 11:34:18 -08:00
Pat Hickey
7ffe3c72c5
config is lazy_static to amoritze it
2021-01-28 11:20:02 -08:00
Pat Hickey
6f85abd949
itsp ublished
2021-01-28 09:44:17 -08:00
Pat Hickey
03466d04ce
temporarily use my branch of the wasi crate
2021-01-27 19:05:52 -08:00
Pat Hickey
be108c7a93
will this work for platform-specific errnos? WIP
2021-01-27 18:18:12 -08:00
Pat Hickey
2ae1dee642
convert all errno assertions to assert_errno!
2021-01-27 18:10:38 -08:00
Pat Hickey
4f655001c0
make a macro that automates errno assertions
2021-01-27 18:10:34 -08:00
Pat Hickey
4f2696fedf
more docs
2021-01-27 16:16:10 -08:00
Pat Hickey
cb171712cc
various windows test notes
2021-01-27 15:32:23 -08:00
Pat Hickey
d1160cb9b5
split path rename trailing slash test into files and dirs
...
files fail on both platform, dirs pass on both! so, same bug!
2021-01-27 14:55:39 -08:00
Pat Hickey
b2e0597ae3
narrow the bug
2021-01-27 12:27:13 -08:00
Pat Hickey
6fcbd3f15d
split path_filestat test into two, improve variable names
2021-01-27 12:18:27 -08:00
Pat Hickey
17f43d4cc3
path_link test: we no longer support symlink following
...
just assert that setting the symlink following lookupflag gives an
ERRNO_INVAL.
2021-01-25 17:15:32 -08:00
Pat Hickey
8f4fecacdc
interesting paths: loosen up errno requirements
2021-01-25 15:28:01 -08:00
Pat Hickey
996d49c81f
nofollow test: permit ACCES as well as LOOP when opening with nofollow
2021-01-25 15:20:35 -08:00
Pat Hickey
144ca2f535
add a test of symlink happy path to isolate the windows failure
2021-01-25 15:14:26 -08:00