fix.додедал этап прерывания компиляции
This commit is contained in:
3
.idea/workspace.xml
generated
3
.idea/workspace.xml
generated
@@ -8,12 +8,9 @@
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Constants.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Constants.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/TestingPlanner.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/TestingPlanner.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/RemoteDVMTestingPlanner.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/RemoteDVMTestingPlanner.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/SapforTestingPlanner.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/SapforTestingPlanner.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/files/Supervisor.h" beforeDir="false" afterPath="$PROJECT_DIR$/src/files/Supervisor.h" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/files/version.h" beforeDir="false" afterPath="$PROJECT_DIR$/src/files/version.h" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
|
||||
@@ -4,7 +4,7 @@ import Common.Utils.Vector_;
|
||||
import java.util.Vector;
|
||||
public class Constants {
|
||||
public static final int version = 1209;
|
||||
public static final int planner_version = 20;
|
||||
public static final int planner_version = 21;
|
||||
public static final int testingMaxKernels = 64;
|
||||
//--
|
||||
public static final String ApplicationFileName = "VisualSapfor.jar";
|
||||
|
||||
@@ -157,7 +157,6 @@ public abstract class TestingPlanner<P extends TestingPackage> extends TestingCl
|
||||
if (ptk_id != CommonConstants.Nan) {
|
||||
Print("package " + testingPackage.id + " NEEDS TO KILL");
|
||||
Kill();
|
||||
UpdatePackageState(TasksPackageState.Aborted);
|
||||
ServerCommand(ServerCode.DeleteObjectByPK, new Pair(TestingPackageToKill.class, ptk_id));
|
||||
} else if (checkIfPaused()) {
|
||||
UpdatePackageState(TasksPackageState.Paused);
|
||||
|
||||
@@ -219,6 +219,7 @@ public class SapforTestingPlanner extends TestingPlanner<SapforPackage> {
|
||||
Process killer = Runtime.getRuntime().exec(kill_command);
|
||||
killer.waitFor();
|
||||
Print("done!");
|
||||
UpdatePackageState(TasksPackageState.Aborted);
|
||||
}
|
||||
//--
|
||||
@Override
|
||||
|
||||
@@ -257,20 +257,24 @@ public:
|
||||
if (!killed) {
|
||||
for (auto& task : taskList)
|
||||
task->copyResults(pathRes);
|
||||
changeState();
|
||||
String outFile(pathRes + "/" + getStatePrefix() + "Info.txt");
|
||||
File tmp(outFile, String(buf.c_str()));
|
||||
}
|
||||
changeState();
|
||||
String outFile(pathRes + "/" + getStatePrefix() + "Info.txt");
|
||||
File tmp(outFile, String(buf.c_str()));
|
||||
//скопировать в результаты лог планировщика.
|
||||
if (killed){
|
||||
else {
|
||||
//всегда финальное состояние.
|
||||
saveState("RunningEnd");
|
||||
ToLog("quit application");
|
||||
std::exit(0);
|
||||
}
|
||||
}
|
||||
void saveState() {
|
||||
String stateFile = packageWorkspace + "/state/" + getStatePrefix() + printState();
|
||||
void saveState(const String& state_text){
|
||||
String stateFile = packageWorkspace + "/state/" + state_text;
|
||||
File tmp(stateFile, Utils::getDate());
|
||||
}
|
||||
void saveState() {
|
||||
saveState(getStatePrefix() + printState());
|
||||
}
|
||||
void saveProgress(long long persentDone) {
|
||||
FILE* f = fopen("progress", "w");
|
||||
if (f) {
|
||||
|
||||
@@ -1 +1 @@
|
||||
20
|
||||
21
|
||||
Reference in New Issue
Block a user