Do not rely on cat output in tests

The error messages of `cat` can change a bit, for example if a different
locale is set. This uses a shell test instead.

Signed-off-by: Etienne Millon <me@emillon.org>
This commit is contained in:
Etienne Millon 2018-07-30 16:48:28 +02:00
parent baa5b773b5
commit 772c1c05ac
1 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,5 @@
$ cat dune-project
cat: dune-project: No such file or directory
[1]
$ [ -e dune-project ] || echo File does not exist
File does not exist
$ mkdir src
$ echo '(alias (name runtest) (action (progn)))' > src/dune
$ dune build