bum bum bum
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
use more_asserts::assert_gt;
|
use more_asserts::assert_gt;
|
||||||
use std::{env, process};
|
use std::{env, process};
|
||||||
use wasi_tests::{assert_errno, create_file, open_scratch_directory};
|
use wasi_tests::{assert_errno, create_file, open_scratch_directory, TESTCONFIG};
|
||||||
|
|
||||||
const TEST_RIGHTS: wasi::Rights = wasi::RIGHTS_FD_READ
|
const TEST_RIGHTS: wasi::Rights = wasi::RIGHTS_FD_READ
|
||||||
| wasi::RIGHTS_PATH_LINK_SOURCE
|
| wasi::RIGHTS_PATH_LINK_SOURCE
|
||||||
@@ -151,7 +151,7 @@ unsafe fn test_path_link(dir_fd: wasi::Fd) {
|
|||||||
wasi::ERRNO_NOENT
|
wasi::ERRNO_NOENT
|
||||||
);
|
);
|
||||||
|
|
||||||
// XXX windows doesnt support dangling symlinks - rest of file
|
if TESTCONFIG.support_dangling_symlinks() {
|
||||||
// Create a link to a dangling symlink
|
// Create a link to a dangling symlink
|
||||||
wasi::path_symlink("target", dir_fd, "symlink").expect("creating a dangling symlink");
|
wasi::path_symlink("target", dir_fd, "symlink").expect("creating a dangling symlink");
|
||||||
|
|
||||||
@@ -200,6 +200,7 @@ unsafe fn test_path_link(dir_fd: wasi::Fd) {
|
|||||||
// Clean up.
|
// Clean up.
|
||||||
wasi::path_unlink_file(dir_fd, "file").expect("removing a file");
|
wasi::path_unlink_file(dir_fd, "file").expect("removing a file");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut args = env::args();
|
let mut args = env::args();
|
||||||
|
|||||||
Reference in New Issue
Block a user