diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 61447e29..acd72aca 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -10,11 +10,12 @@
-
-
-
-
-
+
+
+
+
+
+
diff --git a/properties b/properties
index 789eef95..e0438efc 100644
--- a/properties
+++ b/properties
@@ -4,7 +4,7 @@
"ServerUserPassword": "mprit_2011",
"OfferRegistrationOnStart": true,
"Workspace": "E:\\Tests",
- "ProjectsSearchDirectory": "E:\\Tests",
+ "ProjectsSearchDirectory": "E:\\Tests\\Downloads",
"DocumentsDirectory": "C:\\Users\\misha\\Documents\\_testing_system",
"VisualiserPath": "C:\\Users\\misha\\Downloads",
"Sapfor_FPath": "E:\\_sapfor_x64\\Components\\Sapfor_F",
diff --git a/src/_VisualDVM/Constants.java b/src/_VisualDVM/Constants.java
index e562fef2..9b2b60e2 100644
--- a/src/_VisualDVM/Constants.java
+++ b/src/_VisualDVM/Constants.java
@@ -4,7 +4,7 @@ import Common.Utils.Vector_;
import java.util.Vector;
public class Constants {
public static final int version = 1208;
- public static final int planner_version = 16;
+ public static final int planner_version = 18;
public static final int testingMaxKernels = 64;
//--
public static final String ApplicationFileName = "VisualSapfor.jar";
diff --git a/src/_VisualDVM/TestingSystem/DVM/RemoteDVMTestingPlanner.java b/src/_VisualDVM/TestingSystem/DVM/RemoteDVMTestingPlanner.java
index 52f05547..9c50dc67 100644
--- a/src/_VisualDVM/TestingSystem/DVM/RemoteDVMTestingPlanner.java
+++ b/src/_VisualDVM/TestingSystem/DVM/RemoteDVMTestingPlanner.java
@@ -262,8 +262,10 @@ public class RemoteDVMTestingPlanner extends DVMTestingPlanner {
unzipFolderPass.Do(results_archive.getAbsolutePath(), packageLocalWorkspace.getAbsolutePath(), false);
}
//---
+ /*
if (user.connection.Exists(packageRemoteWorkspace))
user.connection.RMDIR(packageRemoteWorkspace.full_name);
+ */
}
@Override
protected void MachineConnectionError() {
@@ -274,8 +276,8 @@ public class RemoteDVMTestingPlanner extends DVMTestingPlanner {
if (!testingPackage.PID.isEmpty()) {
user.connection.Command("kill -9 " + testingPackage.PID);
//очистка после прерывания.
- if (user.connection.Exists(packageRemoteWorkspace))
- user.connection.RMDIR(packageRemoteWorkspace.full_name);
+ // if (user.connection.Exists(packageRemoteWorkspace))
+ // user.connection.RMDIR(packageRemoteWorkspace.full_name);
}
}
@Override
diff --git a/src/_VisualDVM/TestingSystem/DVM/UserConnection.java b/src/_VisualDVM/TestingSystem/DVM/UserConnection.java
index 7dc6e40f..21a52dd7 100644
--- a/src/_VisualDVM/TestingSystem/DVM/UserConnection.java
+++ b/src/_VisualDVM/TestingSystem/DVM/UserConnection.java
@@ -493,7 +493,7 @@ public class UserConnection {
commands_.add("cd " + Utils_.DQuotes(directory.full_name));
for (int i = 0; i < commands.length; ++i) {
if (i == commands.length - 1) {
- commands_.add(commands[i] + " 1>" + Utils_.DQuotes(outFileName));
+ commands_.add(commands[i] + " 1>" + Utils_.DQuotes(outFileName) +" 2>err.txt");
} else {
commands_.add(commands[i]);
}
diff --git a/src/files/Supervisor.h b/src/files/Supervisor.h
index 68490b30..7d651c32 100644
--- a/src/files/Supervisor.h
+++ b/src/files/Supervisor.h
@@ -233,7 +233,7 @@ public:
if (checkKilled()) {
printf("killed\n");
- while (activeTasks) {
+ while (busyKernels) {
printf("waiting for activeTasks %lu\n", activeTasks);
checkTasksFinish(activeTaskSet, toDel, activeTasks, done, busyKernels, buf);
Utils::Sleep(5);
@@ -289,9 +289,7 @@ public:
activeTasks--;
done += task->getKernels();
busyKernels -= task->getKernels();
-#if DEB
printf(" done task with %d kernels and id %ld\n", task->getKernels(), task->getId());
-#endif
buf += to_string(task->getId()) + " " + string(task->printState().getCharArray()) + " " + to_string(task->getTotalTime()) + "\n";
//copy after end of while
//task->copyResults(pathRes);
diff --git a/src/files/launcher.cpp b/src/files/launcher.cpp
index a2749c59..9ac972b9 100644
--- a/src/files/launcher.cpp
+++ b/src/files/launcher.cpp
@@ -9,7 +9,7 @@
#include "Process_r.h"
Process_r task; //задача
-char* coup_de_grace=NULL;
+char* coup_de_grace=NULL; //команда добивания.
void hdl_abort_by_user(int sig)
{
@@ -38,96 +38,43 @@ void set_handlers(){
}
-
-//argv[0] - имя программы
-//argv[0] - время
-//argv[1] путь к драйверу dvm
-//argv[2] f/c(компиляция) или run(запуск)
-//argv[3] имя программы
-//argv[4] .. argv [argc-1] либо флаги компиляции, либо измерения решетки по одному
-
-
int main(int argc, char ** argv){
-
int i;
time_t time1;
time_t time2;
-
-// for (i=0; i