Skip to content

Commit f72c84c

Browse files
committed
fix test_pair_vsock
1 parent 08ac9f7 commit f72c84c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_pair_vsock.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ void test_pair_vsock ()
1818
int vsock;
1919

2020
if ((vsock = open ("/dev/vsock", O_RDONLY, 0)) < 0) {
21-
printf ("open(\"/dev/vsock\", ...): %d\n", errno);
21+
TEST_IGNORE_MESSAGE ("failed to open /dev/vsock, skipping test");
2222
} else if (ioctl (vsock, IOCTL_VM_SOCKETS_GET_LOCAL_CID, &cid) < 0) {
23-
printf ("ioctl(%d, IOCTL_VM_SOCKETS_GET_LOCAL_CID, ...): %d\n", vsock,
24-
errno);
23+
TEST_IGNORE_MESSAGE ("failed to get local cid, skipping test");
2524
}
2625

2726
if (vsock >= 0) {

0 commit comments

Comments
 (0)