This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
14
unikernel/duniverse/base/test/test_backtrace.ml
Normal file
14
unikernel/duniverse/base/test/test_backtrace.ml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
open! Import
|
||||
open! Backtrace
|
||||
|
||||
let%test_unit (_ [@tags "no-js"]) =
|
||||
let t = get () in
|
||||
assert (String.length (to_string t) > 0)
|
||||
;;
|
||||
|
||||
let%expect_test _ =
|
||||
Backtrace.elide := true;
|
||||
Stdio.Out_channel.(output_string stdout)
|
||||
(Sexp.to_string (sexp_of_t (Exn.with_recording false ~f:Exn.most_recent)));
|
||||
[%expect {| ("<backtrace elided in test>") |}]
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue