Skip to content
Snippets Groups Projects
Commit 70068673 authored by Virgile Prevosto's avatar Virgile Prevosto Committed by Andre Maroneze
Browse files

[aorai] avoid Filename.concat in test script

parent 8fcad1f5
No related branches found
No related tags found
No related merge requests found
...@@ -71,12 +71,17 @@ let extend () = ...@@ -71,12 +71,17 @@ let extend () =
wp_compute_kf kf wp_compute_kf kf
in in
run f; run f;
let tmpdir = Filename.get_temp_dir_name () in
let tmpdir =
match Filename.chop_suffix_opt ~suffix:"/" tmpdir with
| None -> tmpdir
| Some dir -> dir
in
let tmpfile = let tmpfile =
Filename.(concat (get_temp_dir_name ()) tmpdir ^ "/aorai_" ^
("aorai_" ^ Filename.(
(chop_extension chop_extension (basename (List.hd (Kernel.Files.get()):>string))) ^
(basename (List.hd (Kernel.Files.get()):>string))) ^ "_" ^ (string_of_int (TestNumber.get ())) ^ ".i"
"_" ^ (string_of_int (TestNumber.get ())) ^ ".i"))
in in
let () = let () =
Extlib.safe_at_exit Extlib.safe_at_exit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment