-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e24147c
commit f4ff3b9
Showing
9 changed files
with
138 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#![feature(assert_matches)] | ||
use std::{path::Path, time::Duration}; | ||
|
||
use rstest::rstest; | ||
|
||
mod common; | ||
pub use common::*; | ||
|
||
/// Test for the [`libc::mkdir`] function. | ||
#[rstest] | ||
#[tokio::test] | ||
#[timeout(Duration::from_secs(60))] | ||
async fn mkdir(dylib_path: &Path) { | ||
let application = Application::ReadLink; | ||
|
||
let (mut test_process, mut intproxy) = application | ||
.start_process_with_layer(dylib_path, Default::default(), None) | ||
.await; | ||
|
||
println!("waiting for file request."); | ||
intproxy.expect_make_dir("/folder1").await; | ||
|
||
assert_eq!(intproxy.try_recv().await, None); | ||
|
||
test_process.wait_assert_success().await; | ||
test_process.assert_no_error_in_stderr().await; | ||
test_process.assert_no_error_in_stdout().await; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters