Skip to content

Commit

Permalink
flambda-backend: Fix ocaml/testsuite/tests/backtrace/backtrace_systhr…
Browse files Browse the repository at this point in the history
…eads
  • Loading branch information
mshinwell committed Oct 31, 2023
1 parent 2d6dc04 commit cf3f527
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion testsuite/tests/backtrace/backtrace_systhreads.ml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include systhreads
** native
*)

let throw_exn msg = failwith msg [@@inline never]
let throw_exn msg = (failwith [@inlined never]) msg [@@inline never]

let thread_func delay =
Thread.yield ();
Expand Down
15 changes: 5 additions & 10 deletions testsuite/tests/backtrace/backtrace_systhreads.reference
Original file line number Diff line number Diff line change
@@ -1,30 +1,25 @@
Thread 2 killed on uncaught exception Failure("0")
Raised at Stdlib.failwith in file "stdlib.ml" (inlined), line 34, characters 17-33
Raised by primitive operation at Backtrace_systhreads.throw_exn in file "backtrace_systhreads.ml", line 10, characters 20-32
Raised at Stdlib.failwith in file "stdlib.ml", line 34, characters 17-33
Called from Backtrace_systhreads.thread_func in file "backtrace_systhreads.ml", line 14, characters 6-37
Re-raised at Backtrace_systhreads.thread_func in file "backtrace_systhreads.ml", line 18, characters 5-14
Called from Thread.create.(fun) in file "thread.ml", line 51, characters 8-14
Thread 3 killed on uncaught exception Failure("1")
Raised at Stdlib.failwith in file "stdlib.ml" (inlined), line 34, characters 17-33
Raised by primitive operation at Backtrace_systhreads.throw_exn in file "backtrace_systhreads.ml", line 10, characters 20-32
Raised at Stdlib.failwith in file "stdlib.ml", line 34, characters 17-33
Called from Backtrace_systhreads.thread_func in file "backtrace_systhreads.ml", line 14, characters 6-37
Re-raised at Backtrace_systhreads.thread_func in file "backtrace_systhreads.ml", line 18, characters 5-14
Called from Thread.create.(fun) in file "thread.ml", line 51, characters 8-14
Thread 4 killed on uncaught exception Failure("2")
Raised at Stdlib.failwith in file "stdlib.ml" (inlined), line 34, characters 17-33
Raised by primitive operation at Backtrace_systhreads.throw_exn in file "backtrace_systhreads.ml", line 10, characters 20-32
Raised at Stdlib.failwith in file "stdlib.ml", line 34, characters 17-33
Called from Backtrace_systhreads.thread_func in file "backtrace_systhreads.ml", line 14, characters 6-37
Re-raised at Backtrace_systhreads.thread_func in file "backtrace_systhreads.ml", line 18, characters 5-14
Called from Thread.create.(fun) in file "thread.ml", line 51, characters 8-14
Thread 5 killed on uncaught exception Failure("3")
Raised at Stdlib.failwith in file "stdlib.ml" (inlined), line 34, characters 17-33
Raised by primitive operation at Backtrace_systhreads.throw_exn in file "backtrace_systhreads.ml", line 10, characters 20-32
Raised at Stdlib.failwith in file "stdlib.ml", line 34, characters 17-33
Called from Backtrace_systhreads.thread_func in file "backtrace_systhreads.ml", line 14, characters 6-37
Re-raised at Backtrace_systhreads.thread_func in file "backtrace_systhreads.ml", line 18, characters 5-14
Called from Thread.create.(fun) in file "thread.ml", line 51, characters 8-14
Thread 1 killed on uncaught exception Failure("backtrace")
Raised at Stdlib.failwith in file "stdlib.ml" (inlined), line 34, characters 17-33
Raised by primitive operation at Backtrace_systhreads.throw_exn in file "backtrace_systhreads.ml", line 10, characters 20-32
Raised at Stdlib.failwith in file "stdlib.ml", line 34, characters 17-33
Called from Backtrace_systhreads.thread_backtrace in file "backtrace_systhreads.ml", line 22, characters 6-27
Re-raised at Backtrace_systhreads.thread_backtrace in file "backtrace_systhreads.ml", line 26, characters 5-14
Called from Thread.create.(fun) in file "thread.ml", line 51, characters 8-14

0 comments on commit cf3f527

Please sign in to comment.