summaryrefslogtreecommitdiff
path: root/tests/cp/fail-perm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cp/fail-perm')
-rwxr-xr-xtests/cp/fail-perm8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/cp/fail-perm b/tests/cp/fail-perm
index 656b16e23..cd763f7da 100755
--- a/tests/cp/fail-perm
+++ b/tests/cp/fail-perm
@@ -15,12 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
skip_if_root_
chmod g-s . || framework_failure