(File System): In stat:dev and stat:mode, clarify that both are numbers.
[bpt/guile.git] / examples / safe / check.test
CommitLineData
024001c2
MG
1#!/bin/sh
2
3# must be run from this directory
4guile=${GUILE-../../libguile/guile}
5
6if test "X$srcdir" = X; then
7 srcdir=.
8fi
9
10set -e
11
12#
13# ./safe untrusted.scm
14#
15$guile -s $srcdir/safe $srcdir/untrusted.scm > TMP
16cat <<EOF | diff -u - TMP
171
181
192
206
2124
22120
23720
245040
2540320
26362880
273628800
28EOF
29rm -f TMP
30
31#
32# ./safe evil.scm
33#
34$guile -s $srcdir/safe $srcdir/evil.scm > TMP
35cat <<EOF | diff -u - TMP
36** Exception: (unbound-variable #f "Unbound variable: ~S" (open-input-file) #f)
37EOF
38rm -f TMP
39
40# check.test ends here