~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to debian/patches/99_kill_test-xvasprintf_empty_arg.dpatch

  • Committer: Colin Watson
  • Date: 2013-10-30 15:48:33 UTC
  • mfrom: (8.3.5 sid)
  • Revision ID: cjwatson@canonical.com-20131030154833-xdt6e1yfffqom1c4
merge from Debian 8.21-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh /usr/share/dpatch/dpatch-run
2
 
## 99_kill_test-xvasprintf_empty_arg.dpatch by  <mstone@annuminas.home.mathom.us>
3
 
##
4
 
## All lines beginning with `## DP:' are a description of the patch.
5
 
## DP: disable test of zero-len format string
6
 
 
7
 
@DPATCH@
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
11
 
@@ -94,11 +94,13 @@
12
 
 
13
 
   {
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);
20
 
     free (result);
21
 
+*/
22
 
   }
23
 
 
24
 
   result = xasprintf ("%s", "foo");