bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xalloc-die-tests


From: Simon Josefsson
Subject: xalloc-die-tests
Date: Sun, 15 Nov 2009 17:20:53 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

Pushed.

/Simon

>From a31c6b23b94970756cf070ab279bb6e5e6af0156 Mon Sep 17 00:00:00 2001
From: Simon Josefsson <address@hidden>
Date: Sun, 15 Nov 2009 17:20:06 +0100
Subject: [PATCH] Add xalloc-die self-test.

---
 ChangeLog                |    7 +++++++
 gnulib-tool              |    1 +
 modules/xalloc-die-tests |    9 +++++++++
 tests/test-xalloc-die.c  |   28 ++++++++++++++++++++++++++++
 4 files changed, 45 insertions(+), 0 deletions(-)
 create mode 100644 modules/xalloc-die-tests
 create mode 100644 tests/test-xalloc-die.c

diff --git a/ChangeLog b/ChangeLog
index 9fe5174..a005a68 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2009-11-15  Simon Josefsson  <address@hidden>
 
+       * tests/test-xalloc-die.c: New file.
+       * modules/xalloc-die-tests: New file.
+       * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
+       XFAIL_TESTS so it can be appended by modules.
+
+2009-11-15  Simon Josefsson  <address@hidden>
+
        * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
        by Vladimir 'phcoder' Serbinenko <address@hidden>.
 
diff --git a/gnulib-tool b/gnulib-tool
index aafd345..a1e604c 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -2277,6 +2277,7 @@ func_emit_tests_Makefile_am ()
   #   "AM_GNU_GETTEXT used but SUBDIRS not defined"
   echo "SUBDIRS ="
   echo "TESTS ="
+  echo "XFAIL_TESTS ="
   echo "TESTS_ENVIRONMENT ="
   echo "noinst_PROGRAMS ="
   if ! $for_test; then
diff --git a/modules/xalloc-die-tests b/modules/xalloc-die-tests
new file mode 100644
index 0000000..03ee303
--- /dev/null
+++ b/modules/xalloc-die-tests
@@ -0,0 +1,9 @@
+Files:
+tests/test-xalloc-die.c
+
+Depends-on:
+
+Makefile.am:
+TESTS += test-xalloc-die
+XFAIL_TESTS += test-xalloc-die
+check_PROGRAMS += test-xalloc-die
diff --git a/tests/test-xalloc-die.c b/tests/test-xalloc-die.c
new file mode 100644
index 0000000..e281767
--- /dev/null
+++ b/tests/test-xalloc-die.c
@@ -0,0 +1,28 @@
+/* Test of xalloc_die() function.
+   Copyright (C) 2009 Free Software Foundation, Inc.
+
+   This program is free software: you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
+
+/* Written by Simon Josefsson <address@hidden>, 2009.  */
+
+#include <config.h>
+
+#include "xalloc.h"
+
+int
+main (void)
+{
+  xalloc_die ();
+  return 0;
+}
-- 
1.6.5.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]