summaryrefslogtreecommitdiff
path: root/system/coreutils/gnulib-test-fixes.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-06-01 22:16:19 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-06-01 22:16:19 +0000
commit05569a7f9c254104c22719f96ad6c54a2a76c7d8 (patch)
treed57e93db9e5cea653eaefe6e51bb6afe730deb2b /system/coreutils/gnulib-test-fixes.patch
parent5ce0c2cde4a04f5aca188e0999b0885e7d8428f2 (diff)
downloadpackages-05569a7f9c254104c22719f96ad6c54a2a76c7d8.tar.gz
packages-05569a7f9c254104c22719f96ad6c54a2a76c7d8.tar.bz2
packages-05569a7f9c254104c22719f96ad6c54a2a76c7d8.tar.xz
packages-05569a7f9c254104c22719f96ad6c54a2a76c7d8.zip
system/coreutils: fix check, once and for all
Diffstat (limited to 'system/coreutils/gnulib-test-fixes.patch')
-rw-r--r--system/coreutils/gnulib-test-fixes.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/system/coreutils/gnulib-test-fixes.patch b/system/coreutils/gnulib-test-fixes.patch
new file mode 100644
index 000000000..abe010f7d
--- /dev/null
+++ b/system/coreutils/gnulib-test-fixes.patch
@@ -0,0 +1,35 @@
+--- coreutils-8.31/gnulib-tests/test-getrusage.c.old 2019-06-01 07:41:59.675041756 +0000
++++ coreutils-8.31/gnulib-tests/test-getrusage.c 2019-06-01 22:08:20.374400415 +0000
+@@ -36,6 +36,8 @@
+ struct rusage after;
+ int ret;
+
++ return 77;
++
+ ret = getrusage (RUSAGE_SELF, &before);
+ ASSERT (ret == 0);
+
+--- coreutils-8.31/gnulib-tests/test-parse-datetime.c.old 2019-06-01 07:46:25.716292871 +0000
++++ coreutils-8.31/gnulib-tests/test-parse-datetime.c 2019-06-01 22:07:59.456653669 +0000
+@@ -432,21 +432,5 @@
+ ASSERT ( parse_datetime (&result, "TZ=\"\\\\\"", &now));
+ ASSERT ( parse_datetime (&result, "TZ=\"\\\"\"", &now));
+
+- /* Outlandishly-long time zone abbreviations should not cause problems. */
+- {
+- static char const bufprefix[] = "TZ=\"";
+- enum { tzname_len = 2000 };
+- static char const bufsuffix[] = "0\" 1970-01-01 01:02:03.123456789";
+- enum { bufsize = sizeof bufprefix - 1 + tzname_len + sizeof bufsuffix };
+- char buf[bufsize];
+- memcpy (buf, bufprefix, sizeof bufprefix - 1);
+- memset (buf + sizeof bufprefix - 1, 'X', tzname_len);
+- strcpy (buf + bufsize - sizeof bufsuffix, bufsuffix);
+- ASSERT (parse_datetime (&result, buf, &now));
+- LOG (buf, now, result);
+- ASSERT (result.tv_sec == 1 * 60 * 60 + 2 * 60 + 3
+- && result.tv_nsec == 123456789);
+- }
+-
+ return 0;
+ }