no message
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Utils;
|
||||
import _VisualDVM.GlobalData.Module.Module;
|
||||
@@ -16,7 +16,7 @@ public class GCOV extends Precompilation {
|
||||
return new File(workspace, getBinaryName());
|
||||
}
|
||||
protected String getBinaryName() {
|
||||
return CommonUtils.isWindows() ? "0.exe" : "0";
|
||||
return Utils_.isWindows() ? "0.exe" : "0";
|
||||
}
|
||||
@Override
|
||||
public boolean needsConfirmations() {
|
||||
@@ -67,7 +67,7 @@ public class GCOV extends Precompilation {
|
||||
if (getBinary().exists()) {
|
||||
ShowMessage1("Запуск для GCOV");
|
||||
name_to_kill = "0.exe";
|
||||
StartProcess(CommonUtils.isWindows()?"0.exe":"./0", target.run_maxtime);
|
||||
StartProcess(Utils_.isWindows()?"0.exe":"./0", target.run_maxtime);
|
||||
target.updateRunOut(output);
|
||||
} else {
|
||||
Log.Writeln_("Не удалось собрать проект.");
|
||||
@@ -82,10 +82,10 @@ public class GCOV extends Precompilation {
|
||||
Utils.forceDeleteWithCheck(gcov);
|
||||
name_to_kill = "gcov.exe";
|
||||
StartProcess("gcov -b " +
|
||||
CommonUtils.DQuotes(
|
||||
Utils_.DQuotes(
|
||||
Paths.get(workspace.getAbsolutePath(), uname))
|
||||
+ " -o " +
|
||||
CommonUtils.DQuotes(
|
||||
Utils_.DQuotes(
|
||||
Paths.get(workspace.getAbsolutePath(), gcno)
|
||||
), 40);
|
||||
if (gcov.exists()) {
|
||||
@@ -93,7 +93,7 @@ public class GCOV extends Precompilation {
|
||||
target.db.Update(file);
|
||||
File targetGcov = Paths.get(
|
||||
target.getGCOVDirectory().getAbsolutePath(),
|
||||
(CommonUtils.isWindows()?file.name:file.getUnixName()) + ".gcov").toFile();
|
||||
(Utils_.isWindows()?file.name:file.getUnixName()) + ".gcov").toFile();
|
||||
Files.copy(gcov.toPath(), targetGcov.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user