summaryrefslogtreecommitdiff
path: root/testsuite/tests/runtime-errors/syserror.ml
diff options
context:
space:
mode:
authorSébastien Hinderer <Sebastien.Hinderer@inria.fr>2018-04-20 17:07:45 +0200
committerSébastien Hinderer <Sebastien.Hinderer@inria.fr>2018-04-25 19:07:55 +0200
commitf3804bc3d5810d432303ddc615b0f5fab33ec9e2 (patch)
treebc339784e6a1e2f7b0f91a71e8239c7573134b13 /testsuite/tests/runtime-errors/syserror.ml
parent6fe29aef605fc596af419e9fd7c98377c7b5028b (diff)
downloadocaml-f3804bc3d5810d432303ddc615b0f5fab33ec9e2.tar.gz
Migrate the runtime-errors tests to ocamltest
Diffstat (limited to 'testsuite/tests/runtime-errors/syserror.ml')
-rw-r--r--testsuite/tests/runtime-errors/syserror.ml30
1 files changed, 30 insertions, 0 deletions
diff --git a/testsuite/tests/runtime-errors/syserror.ml b/testsuite/tests/runtime-errors/syserror.ml
index 46f62eadb0..39818a21f2 100644
--- a/testsuite/tests/runtime-errors/syserror.ml
+++ b/testsuite/tests/runtime-errors/syserror.ml
@@ -1 +1,31 @@
+(* TEST
+
+flags = "-w a"
+
+* setup-ocamlc.byte-build-env
+** ocamlc.byte
+*** run
+exit_status = "2"
+**** libunix
+***** check-program-output
+reference = "${test_source_directory}/syserror.unix.reference"
+**** libwin32unix
+***** check-program-output
+reference = "${test_source_directory}/syserror.win32.reference"
+
+* setup-ocamlopt.byte-build-env
+** ocamlopt.byte
+*** run
+exit_status = "2"
+**** libunix
+***** check-program-output
+reference = "${test_source_directory}/syserror.unix.reference"
+**** libwin32unix
+***** check-program-output
+reference = "${test_source_directory}/syserror.win32.reference"
+
+*)
+
+let _ = Printexc.record_backtrace false
+
let channel = open_out "titi:/toto"