Pat Hickey
e1ca5d171c
fix the second place i made the same dumb typo
2021-01-29 20:58:00 -08:00
Pat Hickey
6ed8638559
fix test runtime
2021-01-29 18:01:48 -08:00
Pat Hickey
11821e5bfd
Merge remote-tracking branch 'origin/main' into pch/wasi_common_cap_std
2021-01-29 12:38:13 -08:00
Pat Hickey
9bd89abc0c
rename everything c2 related to the "real" names
2021-01-28 15:34:03 -08:00
Pat Hickey
d628677fae
move test failures into ignores in build.rs
2021-01-28 15:07:48 -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
8cd21eed23
elaborate
2021-01-26 12:27:07 -08:00
Pat Hickey
1eb8a8a7fe
integrate GetSetFdFlags!
...
change reopen_with_fdflags(&self, fdflags) -> Result<Box<dyn WasiFile>>
to set_fdflags(&mut self, fdflags) -> Result<()>.
this makes way more sense than my prior hare-brained schemes.
2021-01-26 12:23:52 -08:00
Pat Hickey
f4a6b95965
notes
2021-01-26 11:45:26 -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
Pat Hickey
a8426125d2
kick the can
2021-01-25 14:56:58 -08:00
Pat Hickey
72b207de2e
path_link: some improvements required by windows
...
* need to close the handle to the subdirectory before its legal to
delete it
* windows doesnt give us a way to distinguish between an ERRNO_PERM and
an ERRNO_ACCES, so lets accept either one
2021-01-25 14:35:02 -08:00
Pat Hickey
2c6bde5ee4
elaborate!
2021-01-25 12:54:13 -08:00
Pat Hickey
7fd3d58b23
enumerate windows test failures, move the file
2021-01-25 12:20:10 -08:00
Pat Hickey
634e911a4b
tests: directory seeking is actually prohibited! but the test was wrong
...
* path_open of a directory without OFLAGS_DIRECTORY worked on linux,
but fortunately not on windows!
* the errno is BADF instead of NOTCAPABLE for fd_seek on a directory
* no way for a directory to have the FD_SEEK right.
2021-01-25 12:13:02 -08:00
Pat Hickey
a46c2ad0aa
split poll tests up, only one requires "real" stdio
2021-01-21 16:54:40 -08:00
Pat Hickey
12056885eb
fix preopen dir to work on windows
2021-01-21 16:08:49 -08:00
Pat Hickey
16b42a5707
fix
2021-01-21 14:14:05 -08:00
Pat Hickey
f3e40e2fc4
restructure cap-std impls into their own crate
2021-01-20 19:09:15 -08:00
Pat Hickey
21713d3468
Revert "TEMPORARY: poll_oneoff test uses CLOCKID_REALTIME instead of MONOTONIC"
...
This reverts commit f667263d9c .
2021-01-19 14:57:10 -08:00
Pat Hickey
b84c4d7488
poll_oneoff test: if you subscribe to a badf, the whole call fails with badf
...
rather than the results telling you an individual file was a badf.
why? i think the old behavior was too clever, and makes it harder to
write a scheduler.
* what should the call do when you pass it some badf and some not-badf?
i don't think anything besides exiting early is the correct answer.
* the results vector tells you something that the scheduler had to say
about the file, not about your inputs. the errno of the function
always says what the validity of the inputs was
2021-01-14 17:41:27 -08:00
Pat Hickey
f667263d9c
TEMPORARY: poll_oneoff test uses CLOCKID_REALTIME instead of MONOTONIC
...
the scheduler does not support the monotonic clock yet, i will fix this
soon
2021-01-14 17:40:56 -08:00
Pat Hickey
7d7acc4614
poll_oneoff test: outline assertions
...
this makes the panic message have the line number, which
is handy
2021-01-14 17:40:04 -08:00
Pat Hickey
9a1ce1a272
TEMPORARY: inherit stdio for the wasi ctx
...
this is unfortunate but the poll_oneoff test insists on polling on stdio
handles. to undo this temporary fix later, lets rewrite the test to open
some regular files from the scratch directory and poll on them instead.
2021-01-14 17:38:43 -08:00
Pat Hickey
e0e205f8d2
ctx builder: fix warnings, test harness
2021-01-13 11:07:06 -08:00