Menu

#8 fsplib test program fails

2.8.2
open
nobody
None
2020-04-29
2020-01-16
No

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)

Discussion

  • Ahmed El-Mahmoudy

    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;

     
    • Ahmed El-Mahmoudy

      It seems that the test program requires that fspd is running on the machine, can't the program be standalone ?

       
      • Radim Kolar

        Radim Kolar - 2020-04-29

        yes it does. It was tool for my internal use. Its not kind of unit test.

         

Log in to post a comment.

MongoDB Logo MongoDB