Lots of clean-ups and simplifications
[invirt/third/libt4.git] / rpc / rpctest.cc
index d90e494..115f484 100644 (file)
@@ -199,24 +199,6 @@ simple_tests(rpcc *c)
        VERIFY(rep.size() == 70000);
        printf("   -- small request, big reply .. ok\n");
 
-#if 0
-       // too few arguments
-       intret = c->call(22, (std::string)"just one", rep);
-       VERIFY(intret < 0);
-       printf("   -- too few arguments .. failed ok\n");
-
-       // too many arguments; proc #23 expects just one.
-       intret = c->call(23, 1001, 1002, rep);
-       VERIFY(intret < 0);
-       printf("   -- too many arguments .. failed ok\n");
-
-       // wrong return value size
-       int wrongrep;
-       intret = c->call(23, (std::string)"hello", (std::string)" goodbye", wrongrep);
-       VERIFY(intret < 0);
-       printf("   -- wrong ret value size .. failed ok\n");
-#endif
-
        // specify a timeout value to an RPC that should succeed (udp)
        int xx = 0;
        intret = c->call(23, 77, xx, rpcc::to(3000));
@@ -412,8 +394,7 @@ main(int argc, char *argv[])
        }
 
        if (debug_level > 0) {
-               //__loginit.initNow();
-               jsl_set_debug(debug_level);
+               JSL_DEBUG_LEVEL = debug_level;
                jsl_log(JSL_DBG_1, "DEBUG LEVEL: %d\n", debug_level);
        }