WVSTART "Without any parameters do nothing"
WVPASS forbrun
-WVSTART "argv[0] in forb_main() contains the name of the library"
+WVSTART "Passing of command line parameters to forb_main() in libraries"
+WVPASS sh -c 'forbrun -- libforbrun_printargs.so \
+ -- libforbrun_printargs.so 1 2 3 4 \
+ -- libforbrun_printargs.so --exit > output'
+cat <<EOF > expected
+libforbrun_printargs.so
+libforbrun_printargs.so 1 2 3 4
+libforbrun_printargs.so --exit
+EOF
+WVPASS diff -u expected output
+
+WVSTART "Non-zero return value in forb_main() causes forbrun to fail "
WVFAIL sh -c 'forbrun -- libtest_obj.so 2> error'
WVPASSEQ "$(cat error)" "Usage: libtest_obj.so <string>"
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 test -f test.pid
+# 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 test -f test.pid
-# Run client
-WVPASS forbrun -- libtest_client.so
-WVPASS kill $(cat test.pid)
+# # Run client
+# WVPASS forbrun -- libtest_client.so
+# WVPASS kill $(cat test.pid)
-# Test whether the server was called
-WVPASSEQ "$(cat output)" "Hello"
+# # Test whether the server was called
+# WVPASSEQ "$(cat output)" "Hello"