mirror of
https://github.com/openharmony/third_party_rust_signal-hook.git
synced 2026-07-01 20:44:18 -04:00
Fix versions
This commit is contained in:
Generated
+1
-1
@@ -691,7 +691,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "signal-hook"
|
||||
version = "0.4.0"
|
||||
version = "0.3.9"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"libc",
|
||||
|
||||
@@ -23,7 +23,7 @@ maintenance = { status = "actively-developed" }
|
||||
libc = "~0.2"
|
||||
async-io = "~1"
|
||||
futures-lite = "~1"
|
||||
signal-hook = { version = "~0.4", path = ".." }
|
||||
signal-hook = { version = "~0.3", path = ".." }
|
||||
|
||||
[dev-dependencies]
|
||||
async-std = { version = "~1", features = ["attributes"] }
|
||||
|
||||
@@ -46,9 +46,9 @@ async fn delayed() {
|
||||
let signals_task = async_std::task::spawn(get_signal(signals, Arc::clone(&recieved)));
|
||||
|
||||
async_std::task::sleep(Duration::from_millis(100)).await;
|
||||
assert_eq!(recieved.load(Ordering::SeqCst), false);
|
||||
assert!(!recieved.load(Ordering::SeqCst));
|
||||
|
||||
raise(SIGUSR1).unwrap();
|
||||
signals_task.await;
|
||||
assert_eq!(recieved.load(Ordering::SeqCst), true);
|
||||
assert!(recieved.load(Ordering::SeqCst));
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ support-v0_7 = ["mio-0_7"]
|
||||
|
||||
[dependencies]
|
||||
libc = "~0.2"
|
||||
signal-hook = { version = "~0.4", path = ".." }
|
||||
signal-hook = { version = "~0.3", path = ".." }
|
||||
mio-0_7 = { package = "mio", version = "~0.7", features = ["os-util", "uds"], optional = true}
|
||||
mio-0_6 = { package = "mio", version = "~0.6", optional = true}
|
||||
mio-uds = { version = "~0.6", optional = true}
|
||||
|
||||
@@ -21,4 +21,4 @@ maintenance = { status = "actively-developed" }
|
||||
libc = "~0.2"
|
||||
|
||||
[dev-dependencies]
|
||||
signal-hook = { version = "~0.4", path = ".." }
|
||||
signal-hook = { version = "~0.3", path = ".." }
|
||||
|
||||
@@ -24,7 +24,7 @@ futures-v0_3 = ["futures-core-0_3"]
|
||||
|
||||
[dependencies]
|
||||
libc = "~0.2"
|
||||
signal-hook = { version = "~0.4", path = ".." }
|
||||
signal-hook = { version = "~0.3", path = ".." }
|
||||
futures-core-0_3 = { package = "futures-core", version = "~0.3", optional = true }
|
||||
tokio = { version = "~1", features = ["net"] }
|
||||
|
||||
|
||||
+2
-2
@@ -247,7 +247,7 @@ fn delayed_signal_consumed() {
|
||||
fn is_closed_initially_returns_false() {
|
||||
let (_, controller) = setup_for_sigusr2();
|
||||
|
||||
assert_eq!(controller.is_closed(), false);
|
||||
assert!(!controller.is_closed());
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -256,5 +256,5 @@ fn is_closed_returns_true_when_closed() {
|
||||
let (_, controller) = setup_for_sigusr2();
|
||||
controller.close();
|
||||
|
||||
assert_eq!(controller.is_closed(), true);
|
||||
assert!(controller.is_closed());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user