Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
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
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
pub
frama-c
Commits
1c7a42c8
Commit
1c7a42c8
authored
4 years ago
by
Patrick Baudin
Browse files
Options
Downloads
Patches
Plain Diff
[Ptests] Minor Changes (same semantics)
parent
5a279ee2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ptests/ptests.ml
+16
-15
16 additions, 15 deletions
ptests/ptests.ml
with
16 additions
and
15 deletions
ptests/ptests.ml
+
16
−
15
View file @
1c7a42c8
...
...
@@ -1817,22 +1817,24 @@ let dispatcher () =
if
!
verbosity
>=
2
then
lock_printf
"%% - Process test file %s ...@."
file
;
let
config
=
scan_test_file
config
directory
file
in
let
i
=
ref
0
in
let
e
=
ref
0
in
let
nb_files
=
List
.
length
config
.
dc_commands
in
let
make_toplevel_cmd
{
toplevel
;
opts
=
options
;
logs
=
log_files
;
macros
;
exit_code
;
timeout
}
=
let
n
=
!
i
in
{
file
;
options
;
toplevel
;
nb_files
;
directory
;
n
;
log_files
;
filter
=
config
.
dc_filter
;
macros
;
exit_code
=
begin
match
exit_code
with
|
None
->
0
|
Some
exit_code
->
try
int_of_string
exit_code
with
|
_
->
lock_eprintf
"@[%s: integer required for directive EXIT: %s (defaults to 0)@]@."
file
exit_code
;
0
end
;
execnow
=
false
;
timeout
;
}
let
make_toplevel_cmd
=
let
i
=
ref
0
in
fun
{
toplevel
;
opts
=
options
;
logs
=
log_files
;
macros
;
exit_code
;
timeout
}
->
let
n
=
!
i
in
incr
i
;
{
file
;
options
;
toplevel
;
nb_files
;
directory
;
n
;
log_files
;
filter
=
config
.
dc_filter
;
macros
;
exit_code
=
begin
match
exit_code
with
|
None
->
0
|
Some
exit_code
->
try
int_of_string
exit_code
with
|
_
->
lock_eprintf
"@[%s: integer required for directive EXIT: %s (defaults to 0)@]@."
file
exit_code
;
0
end
;
execnow
=
false
;
timeout
;
}
in
let
mk_cmd
(
s
,
timeout
)
=
{
...
...
@@ -1871,7 +1873,6 @@ let dispatcher () =
Queue
.
push
(
Toplevel
(
make_toplevel_cmd
option
))
q
;
incr
i
in
if
not
config
.
dc_dont_run
then
begin
...
...
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