- NSS_STATUS result;
-
- torture_comment(torture, "Testing WINBINDD_PING (struct based protocol)\n");
-
- result = winbindd_request_response(WINBINDD_PING, NULL, NULL);
- torture_assert_int_equal(torture,result,NSS_STATUS_SUCCESS,
- "WINBINDD_PING (struct based protocol)");
+ struct timeval tv = timeval_current();
+ int timelimit = torture_setting_int(torture, "timelimit", 5);
+ uint32_t total = 0;
+
+ torture_comment(torture,
+ "Running WINBINDD_PING (struct based) for %d seconds\n",
+ timelimit);
+
+ while (timeval_elapsed(&tv) < timelimit) {
+ DO_STRUCT_REQ_REP(WINBINDD_PING, NULL, NULL);
+ total++;
+ }
+
+ torture_comment(torture,
+ "%u (%.1f/s) WINBINDD_PING (struct based)\n",
+ total, total / timeval_elapsed(&tv));