summaryrefslogtreecommitdiff
path: root/testsuite/tests/backtrace/backtrace_dynlink.flambda.reference
Commit message (Collapse)AuthorAgeFilesLines
* Improve legibility of dynamic linking error messagesSamuel Hym2023-04-281-7/+12
| | | | | | | | | | | | | | | | | | | | | | | Avoid wrapping a Dynlink `Cannot_open_dynamic_library` error into another `Cannot_open_dynamic_library` error: - rewrite the platform-specific (bytecode and native) `load` implementations to ensure they raise only `DT.Error` exceptions, by always catching other exceptions and wrapping them into `Cannot_open_dynamic_library` errors, - remove the systematic wrapping of exceptions in `Dynlink_common`. Adopt `%s` rather than `%S` to display the inner exceptions in the exception printer for `DT.Error (Cannot_open_dynamic_library _)` to avoid double escaping In particular, trying to link a non-existent file in the native implementation gives the hard-to-parse message: Fatal error: exception Dynlink.Error (Dynlink.Cannot_open_dll "Dynlink.Error (Dynlink.Cannot_open_dll \"Failure(\\\"...: cannot open shared object file: No such file or directory\\\")\")") This patch turns this message into: Fatal error: exception Dynlink.Error (Dynlink.Cannot_open_dll Failure("...: cannot open shared object file: No such file or directory"))
* Restrict local function optimisation (#11383)Vincent Laviron2023-03-131-2/+2
|
* Load frametables of dynlink'd modules in batch (#11935)Stephen Dolan2023-01-271-5/+5
|
* Update flambda reference for for backtrace_dynlinkDavid Allsopp2022-07-221-4/+4
|
* testsuite: update backtrace_dynlink.ml test in flambda modeFlorian Angeletti2022-07-061-4/+4
|
* review: more explicit lock interfaceFlorian Angeletti2022-02-251-8/+7
|
* Dynlink: use a global lockoctachron2022-02-251-8/+8
| | | | | Allow to dynlink outside of the main domains, but with a global lock
* Add Flambda versions of backtrace testsVincent Laviron2022-01-151-0/+21