Pat Hickey
d738a4a588
preview 0: copy bodies of read, write, and poll_oneoff from snapshot 1
2021-01-29 12:07:21 -08:00
Pat Hickey
ef2cb7b6b7
nearly have snapshot 0 implemented...
2021-01-28 17:00:31 -08:00
Pat Hickey
9bd89abc0c
rename everything c2 related to the "real" names
2021-01-28 15:34:03 -08:00
Pat Hickey
47fec44c10
move wasi-c2 into wasi-common
2021-01-28 15:15:50 -08:00
Pat Hickey
dd005208b6
delete wasi-common, yanix, winx
2021-01-28 15:13:45 -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
bbbe168ca1
ctx: i guess we need environment variables!
2021-01-28 11:34:00 -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
6c0f312a1b
fix bug: i was ignoring the symlink follow flag in path_filestat_{get,
...
set_times}
2021-01-27 12:42:15 -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
220509f3ed
latest system-interface
2021-01-27 12:17:42 -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
c98d6f6201
fix warning
2021-01-26 12:18:39 -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
fded424e68
Dir::hard_link: dont support symlink following
...
if we're asked to follow symlinks, give ERRNO_INVAL instead.
2021-01-25 17:08:02 -08:00
Pat Hickey
a993090e30
fix warning
2021-01-25 17:07:39 -08:00
Pat Hickey
42ccb11f15
cap-std is going to use winerror::ERROR_STOPPED_ON_SYMLINK
...
to communicate eloop on windows
2021-01-25 17:02:11 -08:00
Pat Hickey
8f4fecacdc
interesting paths: loosen up errno requirements
2021-01-25 15:28:01 -08:00
Pat Hickey
b0b263f68e
find a symlink error
2021-01-25 15:20:46 -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
17a82c5b88
table: fix up errnos. trap on internal failures.
2021-01-25 12:16:07 -08:00
Pat Hickey
957c434b67
ErrorExt: trap convenience method
2021-01-25 12:16:01 -08:00