On Wed, 26 Jun 2019, Michele Martone wrote:
> --c++ --test will assume .cpp extension, not .c
>
> Signed-off-by: Michele Martone <[email protected]>
Applied, thanks.
julia
> ---
> diff --git a/testing.ml b/testing.ml
> index 258e6c6f..784040fe 100644
> --- a/testing.ml
> +++ b/testing.ml
> @@ -97,7 +97,7 @@ let testone prefix x compare_with_expected =
> let x = if x =~ "\\(.*\\)_ver0$" then matched1 x else x in
> let base = if x =~ "\\(.*\\)_ver[0-9]+$" then matched1 x else x in
>
> - let cfile = prefix ^ x ^ ".c" in
> + let cfile = if !Flag.c_plus_plus then prefix ^ x ^ ".cpp" else prefix
> ^ x ^ ".c" in
> let cocci_file = prefix ^ base ^ ".cocci" in
>
> let expected_out = prefix ^ base ^ out_suffix in
>
> _______________________________________________
> Cocci mailing list
> [email protected]
> https://systeme.lip6.fr/mailman/listinfo/cocci
>
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci