| 1 |
Index: gnu/tests/pwd/pwd-long.sh |
| 2 |
=================================================================== |
| 3 |
--- gnu.orig/tests/pwd/pwd-long.sh |
| 4 |
+++ gnu/tests/pwd/pwd-long.sh |
| 5 |
@@ -19,7 +19,6 @@ |
| 6 |
|
| 7 |
. "${srcdir=.}/tests/init.sh"; |
| 8 |
print_ver_ pwd |
| 9 |
-uses_strace_ |
| 10 |
|
| 11 |
require_readable_root_ |
| 12 |
require_perl_ |
| 13 |
@@ -27,11 +26,10 @@ |
| 14 |
ARGV_0=$0 |
| 15 |
export ARGV_0 |
| 16 |
|
| 17 |
-# Disable the getcwd syscall if possible, so more of our code is exercised. |
| 18 |
-no_sys_getcwd() { |
| 19 |
- strace -f -o /dev/null -e 'getcwd' -e fault=all:error=ENOSYS "$@" |
| 20 |
-} |
| 21 |
-no_sys_getcwd true || no_sys_getcwd() { "$@"; } |
| 22 |
+# uutils: our pwd has no userspace getcwd reimplementation like GNU's; it |
| 23 |
+# relies on the kernel getcwd(), which already handles paths longer than |
| 24 |
+# PATH_MAX. So run pwd directly instead of disabling the getcwd syscall. |
| 25 |
+no_sys_getcwd() { "$@"; } |
| 26 |
|
| 27 |
# Don't use CuTmpdir here, since File::Temp's use of rmtree can't |
| 28 |
# remove the deep tree we create. |