summaryrefslogtreecommitdiff
path: root/tests/mv/dir-file
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mv/dir-file')
-rwxr-xr-xtests/mv/dir-file4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mv/dir-file b/tests/mv/dir-file
index 61b7deaea..069524964 100755
--- a/tests/mv/dir-file
+++ b/tests/mv/dir-file
@@ -1,7 +1,7 @@
#!/bin/sh
# mv must fail when src and dest are mismatched directory/non-directory.
-# Copyright (C) 2000, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2006-2008 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -32,4 +32,4 @@ fail=0
mv dir file > /dev/null 2>&1 && fail=1
mv file dir > /dev/null 2>&1 && fail=1
-exit $fail
+(exit $fail); exit $fail