L
Luke Kanies
Hi all,
I've got an xmlrpc server and client that I can't figure out how to test.
The methods I've tried so far, with their results are:
1) Server and client in separate threads. I get a deadlock, no matter what I
try to do.
2) Server in thread, client in main program. Another deadlock.
3) Server in forked process. For some reason the server fails in the forked
process with weird errors even though it works just fine if I don't fork.
Also, I end up with two sets of results from Test::Unit -- one from the main
program and one from the fork. I tried using Kernel.exit! but I still got
two result statements
4) Write an external script that starts the server and start this external
program separately. The problem here is that it becomes quite difficult to
understand what's going on within the external program.
Is there a standard pattern for testing server code without resorting to
external executables? It seems like it should be straightforward, but, um,
I can't figure it out, and it's driving me nuts.
Any help would be greatly appreciated.
--
: We are looking at a newspaper clipping labelled "Huffington
: Herald 11/12/96" in which "Huffington" states, in part:
: "The inhabitants of Tiera del Fuego ... have a single word
: that means 'to look at each other hoping that either will offer to do
: something that both parties desire but are unwilling to do.'"
: Does anyone know that word?
Management?
I've got an xmlrpc server and client that I can't figure out how to test.
The methods I've tried so far, with their results are:
1) Server and client in separate threads. I get a deadlock, no matter what I
try to do.
2) Server in thread, client in main program. Another deadlock.
3) Server in forked process. For some reason the server fails in the forked
process with weird errors even though it works just fine if I don't fork.
Also, I end up with two sets of results from Test::Unit -- one from the main
program and one from the fork. I tried using Kernel.exit! but I still got
two result statements
4) Write an external script that starts the server and start this external
program separately. The problem here is that it becomes quite difficult to
understand what's going on within the external program.
Is there a standard pattern for testing server code without resorting to
external executables? It seems like it should be straightforward, but, um,
I can't figure it out, and it's driving me nuts.
Any help would be greatly appreciated.
--
: We are looking at a newspaper clipping labelled "Huffington
: Herald 11/12/96" in which "Huffington" states, in part:
: "The inhabitants of Tiera del Fuego ... have a single word
: that means 'to look at each other hoping that either will offer to do
: something that both parties desire but are unwilling to do.'"
: Does anyone know that word?
Management?