# my @out = `ssh $CLIENTIP cd \'$pwd\' \\; \'$cmd\'`;
# sleep 2; # time to allow the NFS server to be updated
# return @out;
- }
+}
#######################################################################
# Memory allocation test and failure torture testing.
return 0;
}
-
#######################################################################
-# Verify test succeeded
-sub singletest_check {
- my ($testnum, $cmdres, $CURLOUT, $tool, $disablevalgrind)=@_;
+# Verify that the postcheck succeeded
+sub singletest_postcheck {
+ my ($testnum)=@_;
# run the postcheck command
my @postcheck= getpart("client", "postcheck");
}
}
}
+ return 0;
+}
- # restore environment variables that were modified
- restore_test_env(0);
+#######################################################################
+# Verify test succeeded
+sub singletest_check {
+ my ($testnum, $cmdres, $CURLOUT, $tool, $disablevalgrind)=@_;
# Skip all the verification on torture tests
if ($torture) {
return $error;
}
+ #######################################################################
+ # Verify that the postcheck succeeded
+ $error = singletest_postcheck($testnum);
+ if($error == -1) {
+ # return a test failure, either to be reported or to be ignored
+ return $errorreturncode;
+ }
+
+
+ #######################################################################
+ # restore environment variables that were modified
+ restore_test_env(0);
+
#######################################################################
# Verify that the test succeeded
return $cmdres;
}
+
#######################################################################
# Report a successful test
singletest_success($testnum, $count, $total, $errorreturncode);