Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

299 B
Raw Blame
//! This test assumes that it will be run without udp support enabled

#![deny(warnings)]
use test_programs::wasi::sockets::udp::{ErrorCode, IpAddressFamily, UdpSocket};

fn main() {
    assert!(matches!(
        UdpSocket::new(IpAddressFamily::Ipv4),
        Err(ErrorCode::AccessDenied)
    ));
}