Files
xen/tools/ocaml/test/raise_exception.ml
T
Rob Hoes 00d46451e3 libxl: ocaml: implement some simple tests
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: David Scott <dave.scott@eu.citrix.com>
2013-12-11 13:17:25 +00:00

12 lines
216 B
OCaml

open Printf
open Xentoollog
open Xenlight
let _ =
try
Xenlight.test_raise_exception ()
with Xenlight.Error(err, fn) -> begin
printf "Caught Exception: %s: %s\n" (Xenlight.string_of_error err) fn;
end