Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mbe-tools
TTool
Commits
1a99e00d
Commit
1a99e00d
authored
8 months ago
by
jawher-j
Browse files
Options
Downloads
Patches
Plain Diff
Update timeout for running proverif in tests
parent
ec78b9b9
No related branches found
No related tags found
1 merge request
!500
Auto security diplodocus
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/tmltranslator/patternhandling/SecurityGenerationForTMAP.java
+8
-8
8 additions, 8 deletions
...translator/patternhandling/SecurityGenerationForTMAP.java
with
8 additions
and
8 deletions
src/main/java/tmltranslator/patternhandling/SecurityGenerationForTMAP.java
+
8
−
8
View file @
1a99e00d
...
@@ -145,14 +145,6 @@ public class SecurityGenerationForTMAP implements Runnable {
...
@@ -145,14 +145,6 @@ public class SecurityGenerationForTMAP implements Runnable {
final
Reader
[]
data
=
new
Reader
[
1
];
final
Reader
[]
data
=
new
Reader
[
1
];
final
ExecutorService
executor
=
Executors
.
newSingleThreadExecutor
();
final
ExecutorService
executor
=
Executors
.
newSingleThreadExecutor
();
if
(
timeOutInSeconds
>
0
)
{
if
(
timeOutInSeconds
>
0
)
{
try
{
process
[
0
]
=
Runtime
.
getRuntime
().
exec
(
cmd
);
data
[
0
]
=
new
BufferedReader
(
new
InputStreamReader
(
process
[
0
].
getInputStream
()));
}
catch
(
Exception
e
)
{
TraceManager
.
addDev
(
"FAILED: executing: "
+
cmd
+
": "
+
e
.
getMessage
());
throw
new
RuntimeException
(
e
);
}
}
else
{
final
Future
<?>
future
=
executor
.
submit
(()
->
{
final
Future
<?>
future
=
executor
.
submit
(()
->
{
try
{
try
{
process
[
0
]
=
Runtime
.
getRuntime
().
exec
(
cmd
);
process
[
0
]
=
Runtime
.
getRuntime
().
exec
(
cmd
);
...
@@ -170,6 +162,14 @@ public class SecurityGenerationForTMAP implements Runnable {
...
@@ -170,6 +162,14 @@ public class SecurityGenerationForTMAP implements Runnable {
}
finally
{
}
finally
{
executor
.
shutdown
();
executor
.
shutdown
();
}
}
}
else
{
try
{
process
[
0
]
=
Runtime
.
getRuntime
().
exec
(
cmd
);
data
[
0
]
=
new
BufferedReader
(
new
InputStreamReader
(
process
[
0
].
getInputStream
()));
}
catch
(
Exception
e
)
{
TraceManager
.
addDev
(
"FAILED: executing: "
+
cmd
+
": "
+
e
.
getMessage
());
throw
new
RuntimeException
(
e
);
}
}
}
ProVerifOutputAnalyzer
pvoa
=
avatar2proverif
.
getOutputAnalyzer
();
ProVerifOutputAnalyzer
pvoa
=
avatar2proverif
.
getOutputAnalyzer
();
pvoa
.
analyzeOutput
(
data
[
0
],
true
);
pvoa
.
analyzeOutput
(
data
[
0
],
true
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment