diff options
author | ozan s. yigit <oz@silentrunning.ca> | 2021-01-10 15:24:37 -0500 |
---|---|---|
committer | ozan s. yigit <oz@silentrunning.ca> | 2021-01-10 15:24:37 -0500 |
commit | 178f660b5a4fde6f39e8065185373166f55b6e0c (patch) | |
tree | cbae411f6b13bd416caf2b194dcb89189968e91b | |
parent | 1fd5fa38cc801a9fb77494c2c3fce8f2403c5402 (diff) | |
download | one-true-awk-178f660b5a4fde6f39e8065185373166f55b6e0c.tar.gz |
Change T.errmsg print to file fail test.
We cannot have a test that destroys eg. /etc/passwd if someone
runs it as root.
-rwxr-xr-x | testdir/T.errmsg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testdir/T.errmsg b/testdir/T.errmsg index bf2fd6a..ee2450a 100755 --- a/testdir/T.errmsg +++ b/testdir/T.errmsg @@ -155,8 +155,8 @@ BEGIN { next } illegal .*next.* from END END { next; print NR } -can.t open file /etc/passwd -BEGIN { print "abc" >"/etc/passwd" } +can.t open file ./nonexistentdir/foo +BEGIN { print "abc" >"./nonexistentdir/foo" } you can.t define function f more than once function f() { print 1 } |