summaryrefslogtreecommitdiff
path: root/testsuite/tests/basic-io-2
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2013-04-29 09:44:59 +0000
committerDamien Doligez <damien.doligez-inria.fr>2013-04-29 09:44:59 +0000
commit9cdba46317320c4ffc1c42a3767a7b924969ede8 (patch)
tree5100744ecc0fee6c8ce69a0def27e44f7a8497b7 /testsuite/tests/basic-io-2
parentc089c9a6dd8336e7be30cdc20a2f513cffd9fa2b (diff)
downloadocaml-9cdba46317320c4ffc1c42a3767a7b924969ede8.tar.gz
make it work on non-unix systems
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13614 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'testsuite/tests/basic-io-2')
-rw-r--r--testsuite/tests/basic-io-2/io.ml2
-rw-r--r--testsuite/tests/basic-io-2/test-file-short-lines10
2 files changed, 11 insertions, 1 deletions
diff --git a/testsuite/tests/basic-io-2/io.ml b/testsuite/tests/basic-io-2/io.ml
index 58e8365690..14e458cdde 100644
--- a/testsuite/tests/basic-io-2/io.ml
+++ b/testsuite/tests/basic-io-2/io.ml
@@ -105,7 +105,7 @@ let _ =
test "263-byte chunks" (copy_file 263) src testio;
test "4011-byte chunks" (copy_file 4011) src testio;
test "0...8192 byte chunks" (copy_random 8192) src testio;
- test "line per line, short lines" copy_line "/etc/hosts" testio;
+ test "line per line, short lines" copy_line "test-file-short-lines" testio;
make_lines lines;
test "line per line, short and long lines" copy_line lines testio;
test "backwards, 4096-byte chunks" (copy_seek 4096) src testio;
diff --git a/testsuite/tests/basic-io-2/test-file-short-lines b/testsuite/tests/basic-io-2/test-file-short-lines
new file mode 100644
index 0000000000..35abe7ca2e
--- /dev/null
+++ b/testsuite/tests/basic-io-2/test-file-short-lines
@@ -0,0 +1,10 @@
+##
+# Host Database
+#
+# localhost is used to configure the loopback interface
+# when the system is booting. Do not change this entry.
+##
+127.0.0.1 localhost
+255.255.255.255 broadcasthost
+::1 localhost
+fe80::1%lo0 localhost