瀏覽代碼

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 年之前
父節點
當前提交
a5bc25e4bc
共有 2 個檔案被更改,包括 4 行新增21 行删除
  1. 3
    20
      TestService/buildAndRun
  2. 1
    1
      TestService/serviceProgram.cpp

+ 3
- 20
TestService/buildAndRun 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存