Skip to content

Commit

Permalink
Ignore Packets
Browse files Browse the repository at this point in the history
  • Loading branch information
sampoder committed Jun 29, 2023
1 parent b629e80 commit c5e0467
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tun/tests/configure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn test_set_get_ipv4() {

#[test]
#[throws]
#[cfg(not(all(target_os = "windows", target_vendor = "apple")))]
#[cfg(not(any(target_os = "windows", target_vendor = "apple")))]
fn test_set_get_ipv6() {
let tun = TunInterface::new()?;

Expand Down
4 changes: 4 additions & 0 deletions tun/tests/packets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ use tun::TunInterface;

#[throws]
#[test]
#[ignore = "requires interactivity"]
#[cfg(not(target_os = "windows"))]
fn tst_read() {
// This test is interactive, you need to send a packet to any server through 192.168.1.10
// EG. `sudo route add 8.8.8.8 192.168.1.10`,
Expand All @@ -23,6 +25,8 @@ fn tst_read() {

#[test]
#[throws]
#[ignore = "requires interactivity"]
#[cfg(not(target_os = "windows"))]
fn write_packets() {
let mut tun = TunInterface::new()?;
let mut buf = [0u8; 1500];
Expand Down

0 comments on commit c5e0467

Please sign in to comment.