Change T.errmsg print to file fail test.

We cannot have a test that destroys eg. /etc/passwd if someone
runs it as root.
This commit is contained in:
ozan s. yigit 2021-01-10 15:24:37 -05:00
parent 1fd5fa38cc
commit 178f660b5a
1 changed files with 2 additions and 2 deletions

View File

@ -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 }