diff --git a/t/pmc/socket.t b/t/pmc/socket.t index b8423c5196..565049c607 100644 --- a/t/pmc/socket.t +++ b/t/pmc/socket.t @@ -20,14 +20,16 @@ Tests the Socket PMC. .sub main :main .include 'test_more.pir' - plan(9) + plan(11) test_init() test_clone() test_bool() test_close() test_tcp_socket() + test_raw_tcp_socket() test_udp_socket() + test_raw_udp_socket() .end @@ -71,6 +73,13 @@ Tests the Socket PMC. ok(sock, 'Created a TCP Socket') .end +.sub test_raw_tcp_socket + .local pmc sock + sock = new 'Socket' + sock.'socket'(.PIO_PF_INET, .PIO_SOCK_RAW, .PIO_PROTO_TCP) + ok(sock, 'Created a raw TCP Socket') +.end + .sub test_udp_socket .local pmc sock sock = new 'Socket' @@ -79,6 +88,14 @@ Tests the Socket PMC. ok(sock, 'Created a UDP Socket') .end +.sub test_raw_udp_socket + .local pmc sock + sock = new 'Socket' + + sock.'socket'(.PIO_PF_INET, .PIO_SOCK_RAW, .PIO_PROTO_UDP) + ok(sock, 'Created a raw UDP Socket') +.end + # Local Variables: # mode: pir # fill-column: 100