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

run_test Nominal run_test Nominal
nominal_status=$? 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 \ if [ $nominal_status == "0" -a \
$pause_status == "0" -a \
$resume_status == "0" -a \
$stop_status == "0" ] $stop_status == "0" ]
then then
exit 0 exit 0

+ 1
- 1
TestService/serviceProgram.cpp View File

int CodeDweller::Service::run() { int CodeDweller::Service::run() {


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


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

Loading…
Cancel
Save