diff --git a/hi b/hi deleted file mode 100644 index cf57f2a..0000000 --- a/hi +++ /dev/null @@ -1 +0,0 @@ -Hello, this is used by `slurp.sh` test, please do not remove. diff --git a/unit-tests/slurp.sh b/unit-tests/slurp.sh index e285988..b389143 100755 --- a/unit-tests/slurp.sh +++ b/unit-tests/slurp.sh @@ -1,11 +1,14 @@ #!/bin/bash -expected='"Hello, this is used by `slurp.sh` test, please do not remove.' -actual=`echo '(slurp (open "hi"))' | target/psse | tail -2 | head -1` +tmp=hi$$ +echo "Hello, there." > ${tmp} +expected='"Hello, there.' +actual=`echo "(slurp (open \"${tmp}\"))" | target/psse | tail -2 | head -1` if [ "${expected}" = "${actual}" ] then echo "OK" + rm ${tmp} exit 0 else echo "Fail: expected '$expected', got '$actual'"