Skip to content

Commit 686c270

Browse files
committed
WIP tests
Signed-off-by: Matej Hrica <[email protected]>
1 parent 5c761d9 commit 686c270

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

tests/test_cases/src/lib.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ pub fn test_cases() -> Vec<TestCase> {
3636
),
3737
// Vsock connecting to unix socket (non TSI)
3838
TestCase::new("vsock-guest-connect", Box::new(TestVsockGuestConnect)),
39-
// UDP setsockopt regression tests
4039
TestCase::new(
4140
"tsi-udp-setsockopt-ipv4",
4241
Box::new(TestTsiUdpSetsockopt::new(IpVersion::V4)),
@@ -45,7 +44,6 @@ pub fn test_cases() -> Vec<TestCase> {
4544
"tsi-udp-setsockopt-ipv6",
4645
Box::new(TestTsiUdpSetsockopt::new(IpVersion::V6)),
4746
),
48-
// TCP: server on host, client in guest
4947
TestCase::new(
5048
"tsi-tcp-host-guest-ipv4",
5149
Box::new(TestTsi::new(
@@ -68,7 +66,6 @@ pub fn test_cases() -> Vec<TestCase> {
6866
Guest,
6967
)),
7068
),
71-
// TCP: server in guest, client on host
7269
TestCase::new(
7370
"tsi-tcp-guest-host-ipv4",
7471
Box::new(TestTsi::new(
@@ -91,7 +88,6 @@ pub fn test_cases() -> Vec<TestCase> {
9188
Host,
9289
)),
9390
),
94-
// TCP: both in guest
9591
TestCase::new(
9692
"tsi-tcp-guest-guest-ipv4",
9793
Box::new(TestTsi::new(
@@ -114,7 +110,6 @@ pub fn test_cases() -> Vec<TestCase> {
114110
Guest,
115111
)),
116112
),
117-
// UDP: server on host, client in guest
118113
TestCase::new(
119114
"tsi-udp-host-guest-ipv4",
120115
Box::new(TestTsi::new(
@@ -137,7 +132,6 @@ pub fn test_cases() -> Vec<TestCase> {
137132
Guest,
138133
)),
139134
),
140-
// UDP: both in guest
141135
TestCase::new(
142136
"tsi-udp-guest-guest-ipv4",
143137
Box::new(TestTsi::new(
@@ -160,7 +154,6 @@ pub fn test_cases() -> Vec<TestCase> {
160154
Guest,
161155
)),
162156
),
163-
// Unix stream: server on host
164157
TestCase::new_with_namespace(
165158
"tsi-unix-stream-host-guest",
166159
Box::new(TestTsi::new(

tests/test_cases/src/test_tsi_udp_setsockopt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use macros::{guest, host};
44
/// Test that setsockopt works on TSI-intercepted UDP sockets.
55
/// This is a regression test for a kernel NULL pointer dereference bug
66
/// in tsi_dgram_setsockopt that occurred when setting socket options
7-
/// on UDP sockets before any sendto() call.
7+
/// on UDP sockets and unix dgram sockets.
88
#[allow(dead_code)] // Used in guest module
99
pub struct TestTsiUdpSetsockopt {
1010
ip_version: IpVersion,

0 commit comments

Comments
 (0)