We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3cf77d commit 5881f65Copy full SHA for 5881f65
tests/integration_tests.rs
@@ -15,6 +15,9 @@ use std::convert::TryInto;
15
use std::env::consts::ARCH;
16
use std::thread;
17
18
+use libc::SYS_read;
19
+
20
21
// The type of the `req` parameter is different for the `musl` library. This will enable
22
// successful build for other non-musl libraries.
23
#[cfg(target_env = "musl")]
@@ -789,3 +792,15 @@ fn test_filter_apply() {
789
792
.join()
790
793
.unwrap();
791
794
}
795
796
+#[test]
797
+fn test_duplicate_syscall_keys_override_previous_rules() {
798
+ let rules = vec![
799
+ (SYS_read, 1),
800
+ (SYS_read, 2),
801
+ ];
802
803
+ let map: BTreeMap<_, _> = rules.into_iter().collect();
804
805
+ assert_eq!(map.len(), 1);
806
+}
0 commit comments