Skip to content
Snippets Groups Projects
Commit 190c4af0 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[crowbar] force test_ghost_cfg to link module Ghost_cfg in the executable

Otherwise, chances to trigger an `abort` from `Ghost_cfg` become pretty slim.

Also, consider other failures worthy of investigation as well
parent 9948f28c
No related branches found
No related tags found
No related merge requests found
open Crowbar
open Cil_types
(* just here to ensure we load the corresponding transformation. *)
let _ = Ghost_cfg.transform_category
module Loc = Cil_datatype.Location
let report file_name s =
......@@ -370,7 +373,7 @@ let check_file (env, file) =
Printf.printf
"Uncaught exception: %s\n%t\nFile saved in %s\n%!"
(Printexc.to_string exn) Printexc.print_backtrace file_name;
bad_test()
report file_name "Found code leading to an unknown exception"
in
if env.should_fail && success then
report file_name "Found ghost code that should not have been accepted"
......
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