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
adbcf8fe
Commit
adbcf8fe
authored
4 years ago
by
Virgile Prevosto
Committed by
Andre Maroneze
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[ptests] only scan a comment for directives if it introduces a configuration
parent
fc9d8662
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ptests/ptests.ml
+8
-2
8 additions, 2 deletions
ptests/ptests.ml
with
8 additions
and
2 deletions
ptests/ptests.ml
+
8
−
2
View file @
adbcf8fe
...
...
@@ -844,6 +844,11 @@ let scan_options dir scan_buffer default =
let
split_config
=
Str
.
regexp
",[ ]*"
let
is_config
name
=
let
prefix
=
"run.config"
in
let
len
=
String
.
length
prefix
in
String
.
length
name
>=
len
&&
String
.
sub
name
0
len
=
prefix
let
scan_test_file
default
dir
f
=
let
f
=
SubDir
.
make_file
dir
f
in
let
exists_as_file
=
...
...
@@ -868,9 +873,10 @@ let scan_test_file default dir f =
scan_options
dir
scan_buffer
default
else
(* config name does not match: eat config and continue.
But only if the comment is still opened by the end of
the line
...
the line
and we are indeed reading a config
*)
(
if
not
(
str_string_match
end_comment
names
0
)
then
(
if
List
.
exists
is_config
configs
&&
not
(
str_string_match
end_comment
names
0
)
then
ignore
(
scan_options
dir
scan_buffer
default
);
scan_config
()
))
in
...
...
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