1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 99_kill_test-xvasprintf_empty_arg.dpatch by <mstone@annuminas.home.mathom.us>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: disable test of zero-len format string
8
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' coreutils-8.20~/gnulib-tests/test-xvasprintf.c coreutils-8.20/gnulib-tests/test-xvasprintf.c
9
--- coreutils-8.20~/gnulib-tests/test-xvasprintf.c 2012-10-23 10:17:25.000000000 -0400
10
+++ coreutils-8.20/gnulib-tests/test-xvasprintf.c 2012-11-13 22:27:04.391789074 -0500
14
/* Silence gcc warning about zero-length format string. */
15
+/* this test can't be run when hardening flags are active
16
const char *empty = "";
17
result = xasprintf (empty);
18
ASSERT (result != NULL);
19
ASSERT (strcmp (result, "") == 0);
24
result = xasprintf ("%s", "foo");