Skip to content

Commit abd4a55

Browse files
committed
test: fix utop tests
Signed-off-by: Rudi Grinberg <[email protected]> <!-- ps-id: ad13c693-c903-495c-9b2c-3c8cf6212119 --> Signed-off-by: Rudi Grinberg <[email protected]>
1 parent 891d279 commit abd4a55

File tree

2 files changed

+6
-10
lines changed
  • test/blackbox-tests/test-cases/utop/utop-default

2 files changed

+6
-10
lines changed
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
By default, dune utop tries to make a toplevel for the current directory:
22

3-
$ echo 'exit 0;;' | dune utop . -- -init "" | grep -v 'version'
4-
Enter #help;; for help.
5-
6-
Init file not found: "".
7-
#
3+
$ touch empty
4+
$ echo 'print_endline "success";; exit 0;;' | dune utop . -- -stdin -init empty
5+
success

test/blackbox-tests/test-cases/utop/utop-default/nothing-in-root.t/run.t

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
Utop will load libs recursively:
22

3-
$ echo 'exit 0;;' | dune utop . -- -init "" | grep -v 'version'
4-
Enter #help;; for help.
5-
6-
Init file not found: "".
7-
#
3+
$ touch empty
4+
$ echo 'print_endline "success";; exit 0;;' | dune utop . -- -stdin -init empty
5+
success
86

97

108
The message where the library path does not exist is different:

0 commit comments

Comments
 (0)