Skip to content

Commit 5a2d6f1

Browse files
committed
Fix backtrace slot name change
1 parent 96304da commit 5a2d6f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/backtrace.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ let _ =
3131
let open Printexc in
3232
let bt = get_raw_backtrace () in
3333
let bt_slot_arr = Option.get (backtrace_slots bt) in
34-
assert (Option.get (Slot.name bt_slot_arr.(1)) = "Backtrace.foo");
34+
let name = Option.get (Slot.name bt_slot_arr.(1)) in
35+
assert (name = "Backtrace.foo" || name = "Dune__exe__Backtrace.foo");
3536
let s = raw_backtrace_to_string bt in
3637
print_string s

0 commit comments

Comments
 (0)