bum bum bum
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use more_asserts::assert_gt;
|
||||
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
|
||||
| wasi::RIGHTS_PATH_LINK_SOURCE
|
||||
@@ -151,7 +151,7 @@ unsafe fn test_path_link(dir_fd: wasi::Fd) {
|
||||
wasi::ERRNO_NOENT
|
||||
);
|
||||
|
||||
// XXX windows doesnt support dangling symlinks - rest of file
|
||||
if TESTCONFIG.support_dangling_symlinks() {
|
||||
// Create a link to a dangling symlink
|
||||
wasi::path_symlink("target", dir_fd, "symlink").expect("creating a dangling symlink");
|
||||
|
||||
@@ -199,6 +199,7 @@ unsafe fn test_path_link(dir_fd: wasi::Fd) {
|
||||
|
||||
// Clean up.
|
||||
wasi::path_unlink_file(dir_fd, "file").expect("removing a file");
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
||||
Reference in New Issue
Block a user