Selaa lähdekoodia

脚本超时,使用EndofThread;

scbc.sat2 5 vuotta sitten
vanhempi
commit
3b8db94407

+ 0 - 4
SATService/SATService/PythonExecutor.cpp

@@ -46,10 +46,6 @@ CPythonExecutor::~CPythonExecutor(void)
 DWORD CPythonExecutor::_WorkerThread(LPVOID lpParam)
 {
 	CPythonExecutor* that = (CPythonExecutor*)lpParam;
-	if ( !that ) {
-		printf("Error:²ÎÊýʧЧ\n");
-		return -1;
-	}
 
 #ifdef _DEBUG
 	that->RunScriptProcess();

+ 1 - 1
SATService/SATService/SATExecutor.cpp

@@ -1164,7 +1164,7 @@ DWORD CSATExecutor::ExecuteScriptThread(LPVOID lpVoid)
 								// 标记任务已执行;
 								pCase->_nExecutionState = SATHTTP::EXECUTED;
 								// 结束进程;
-								pExcutor->EndSubprocess();
+								pExcutor->EndThread();
 								// 超时中断;
 								pCase->_nExecutionResult = SATHTTP::OVERTIME;
 								// 上报用例结果;