acea7bbce4
The pthread_join() is sufficient. The server thread really shouldn't take 1 second to run, but when running in a VM it's possible things are getting scheduled such that the timer expires. This should not be a concern of this test though - it should just test that the rpc server/client functionality is working as intended. So remove the sem_t that was timing out. Note: I kept the other sem_t's in here for now. Maybe they should be removed too, but for now my main intention was to fix this annoying intermittent failure. While here, fix some typos and cases where we should be printing "server" instead of "client". I think this fixes issue #839. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I647d0b9c5faa9ccac53e6f6387757bb5a7649b5c Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/473490 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
rpc_client_test.c | ||
rpc_client.sh |