Skip to content

Commit 378197d

Browse files
committed
testsock add detail
1 parent fa68261 commit 378197d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

client/castApp/src/testsock.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ static void testWakeup(void)
8989
testOk1(sizeof(junk)==send(wakeup[0], (char*)&junk, sizeof(junk), 0));
9090

9191
SOCKERRNOSET(0);
92-
testOk1(shWaitFor(&sock, SH_CANTX, 0)==-1);
93-
testOk1(SOCKERRNO==SOCK_ETIMEDOUT);
92+
ret = shWaitFor(&sock, SH_CANTX, 0);
93+
testOk(ret==-1 && SOCKERRNO==SOCK_ETIMEDOUT,
94+
"shWaitFor(&sock, SH_CANTX, 0)==%d (%d) ==-1 (SOCK_ETIMEDOUT)", ret, (int)SOCKERRNO);
9495

9596
epicsSocketDestroy(sock.sd);
9697
epicsSocketDestroy(wakeup[0]);
@@ -99,7 +100,7 @@ static void testWakeup(void)
99100

100101
MAIN(testsock)
101102
{
102-
testPlan(19);
103+
testPlan(18);
103104
osiSockAttach();;
104105
testUDP();
105106
testWakeup();

0 commit comments

Comments
 (0)