From 178f660b5a4fde6f39e8065185373166f55b6e0c Mon Sep 17 00:00:00 2001 From: "ozan s. yigit" Date: Sun, 10 Jan 2021 15:24:37 -0500 Subject: [PATCH] Change T.errmsg print to file fail test. We cannot have a test that destroys eg. /etc/passwd if someone runs it as root. --- testdir/T.errmsg | 4 ++-- 1 file 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 }