Browse Source

Test only Stop callback timeouts.


git-svn-id: https://svn.microneil.com/svn/CodeDweller-Tests/trunk@26 b3372362-9eaa-4a85-aa2b-6faa1ab7c995
master
adeniz 10 years ago
parent
commit
a5bc25e4bc
2 changed files with 4 additions and 21 deletions
  1. 3
    20
      TestService/buildAndRun
  2. 1
    1
      TestService/serviceProgram.cpp

+ 3
- 20
TestService/buildAndRun View File

@@ -127,28 +127,11 @@ stat=0
run_test Nominal
nominal_status=$?

if [ "$(uname --operating-system)" != "Msys" ]
then
# Pause timeout.
run_test Pause
pause_status=$?

# Resume timeout.
run_test Resume
resume_status=$?

# Stop timeout.
run_test Stop
stop_status=$?
else
pause_status=0
resume_status=0
stop_status=0
fi
# Stop timeout.
run_test Stop
stop_status=$?

if [ $nominal_status == "0" -a \
$pause_status == "0" -a \
$resume_status == "0" -a \
$stop_status == "0" ]
then
exit 0

+ 1
- 1
TestService/serviceProgram.cpp View File

@@ -153,7 +153,7 @@ StopCallback notStopCbck;
int CodeDweller::Service::run() {

// Set the callback timeout to the default.
CodeDweller::Service::setCallbackTimeout_ms(timeoutTime_ms);
CodeDweller::Service::setStopCallbackTimeout_ms(timeoutTime_ms);

// Get the log file name.
auto arguments = CodeDweller::Service::arguments();

Loading…
Cancel
Save