When running test program in fsplib it fails:
$ ./test Checking for fsp/udp service Running tests against fspd on localhost 2000 test-shared: test.c:35: main: Assertion `fsp_transaction(s,&p,&r)==0' failed. Aborted (core dumped)
I tried debugging the test program, it seems to fail at line 334 of fsplib.c:
334 r=recv(s->fd,buf,FSP_MAXPACKET,0); (gdb) 335 if(r < 0 ) (gdb) 338 client_set_key((FSP_LOCK *)s->lock,p->key); (gdb) 339 return -1;
It seems that the test program requires that fspd is running on the machine, can't the program be standalone ?
yes it does. It was tool for my internal use. Its not kind of unit test.
Log in to post a comment.
I tried debugging the test program, it seems to fail at line 334 of fsplib.c:
334 r=recv(s->fd,buf,FSP_MAXPACKET,0);
(gdb)
335 if(r < 0 )
(gdb)
338 client_set_key((FSP_LOCK *)s->lock,p->key);
(gdb)
339 return -1;
It seems that the test program requires that fspd is running on the machine, can't the program be standalone ?
yes it does. It was tool for my internal use. Its not kind of unit test.