WVPASS forbrun
WVSTART "argv[0] in forb_main() contains the name of the library"
-WVFAIL sh -c 'forbrun libtest_obj.so 2> error'
+WVFAIL sh -c 'forbrun -- libtest_obj.so 2> error'
WVPASSEQ "$(cat error)" "Usage: libtest_obj.so <string>"
WVSTART "Both server and client in a single process"
-WVPASS sh -c 'forbrun libtest_obj.so "Hello" -- libtest_client.so > output'
+WVPASS sh -c 'forbrun -- libtest_obj.so "Hello" -- libtest_client.so > output'
WVPASSEQ "$(cat output)" "Hello"
WVSTART "Server and client in separate processes"
# Run server on background
rm -f test.pid
-WVPASS sh -c 'forbrun --daemon=test.pid libtest_obj.so "Hello" > output'
+WVPASS sh -c 'forbrun --daemon=test.pid -- libtest_obj.so "Hello" > output'
WVPASS test -f test.pid
# Run client
-WVPASS forbrun libtest_client.so
-WVPASS kill $(cat test.pif)
+WVPASS forbrun -- libtest_client.so
+WVPASS kill $(cat test.pid)
# Test whether the server was called
WVPASSEQ "$(cat output)" "Hello"