summaryrefslogtreecommitdiff
path: root/system/coreutils/gnulib-test-fixes.patch
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-09-11 06:54:54 -0500
committerMax Rees <maxcrees@me.com>2019-09-28 13:27:49 -0500
commit1067b6142455d1f5f390d07ea722a69be4b803c4 (patch)
tree7c68fc6465bbafd0ae6bbfba5bd6fde15cf2c7ff /system/coreutils/gnulib-test-fixes.patch
parent96cac2093872a7b647d2bde53af20d90ebd3ffe3 (diff)
downloadpackages-1067b6142455d1f5f390d07ea722a69be4b803c4.tar.gz
packages-1067b6142455d1f5f390d07ea722a69be4b803c4.tar.bz2
packages-1067b6142455d1f5f390d07ea722a69be4b803c4.tar.xz
packages-1067b6142455d1f5f390d07ea722a69be4b803c4.zip
system/coreutils: skip bogus gnulib LOGNAME test
It is not necessarily true that LOGNAME will match the owner of the tty to which stdin is connected (sudo, su, ...)
Diffstat (limited to 'system/coreutils/gnulib-test-fixes.patch')
-rw-r--r--system/coreutils/gnulib-test-fixes.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/system/coreutils/gnulib-test-fixes.patch b/system/coreutils/gnulib-test-fixes.patch
index abe010f7d..5455cf7cd 100644
--- a/system/coreutils/gnulib-test-fixes.patch
+++ b/system/coreutils/gnulib-test-fixes.patch
@@ -33,3 +33,15 @@
-
return 0;
}
+--- coreutils-8.31/gnulib-tests/test-getlogin.h 2019-01-04 10:14:43.000000000 -0600
++++ coreutils-8.31/gnulib-tests/test-getlogin.h 2019-09-11 06:50:47.791580246 -0500
+@@ -61,6 +61,9 @@ test_getlogin_result (const char *buf, i
+ struct stat stat_buf;
+ struct passwd *pwd;
+
++ fprintf (stderr, "Skipping test: this is a bogus assumption\n");
++ exit(77);
++
+ if (!isatty (STDIN_FILENO))
+ {
+ fprintf (stderr, "Skipping test: stdin is not a tty.\n");