From 83e3a669302369e16f27344bea04afa83a1455e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 2 Feb 2012 17:24:13 +0100 Subject: [PATCH] Return non-zero exit code on tests failure --- ...-non-zero-exit-code-on-tests-failure.patch | 24 +++++++++++++++++++ indent.spec | 9 ++++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 indent-2.2.11-Return-non-zero-exit-code-on-tests-failure.patch diff --git a/indent-2.2.11-Return-non-zero-exit-code-on-tests-failure.patch b/indent-2.2.11-Return-non-zero-exit-code-on-tests-failure.patch new file mode 100644 index 0000000..e3a7437 --- /dev/null +++ b/indent-2.2.11-Return-non-zero-exit-code-on-tests-failure.patch @@ -0,0 +1,24 @@ +From c0001598a2b5b4cc8739beeb183f0d3f9c6a1d84 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Thu, 2 Feb 2012 17:12:44 +0100 +Subject: [PATCH] Return non-zero exit code on tests failure + +--- + regression/TEST | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/regression/TEST b/regression/TEST +index c860ef2..620e77f 100755 +--- a/regression/TEST ++++ b/regression/TEST +@@ -441,6 +441,7 @@ then + cat $ERR + echo '**** Errors occured: ./output not removed' + echo ++ exit 1 + else + cd .. + ls -l output +-- +1.7.7.6 + diff --git a/indent.spec b/indent.spec index 45d5212..201e3b9 100644 --- a/indent.spec +++ b/indent.spec @@ -2,7 +2,7 @@ Summary: A GNU program for formatting C code Name: indent Version: 2.2.11 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv3+ Group: Applications/Text URL: http://indent.isidore-it.eu/beautify.html @@ -12,6 +12,9 @@ Patch7: indent-2.2.9-man.patch # Bug 733051, submitted to upstream # Patch8: indent-2.2.11-Do-not-split-decimal-float-suffix-from-constant.patch +# Submitted to upstream +# +Patch9: indent-2.2.11-Return-non-zero-exit-code-on-tests-failure.patch BuildRequires: texinfo texi2html Requires(post): /sbin/install-info Requires(preun): /sbin/install-info @@ -30,6 +33,7 @@ you want a program to format your code. %patch5 -p1 %patch7 -p1 %patch8 -p1 -b .float_suffix +%patch9 -p1 -b .exit_code %build %configure @@ -61,6 +65,9 @@ fi %changelog +* Thu Feb 02 2012 Petr Pisar - 2.2.11-6 +- Return non-zero exit code on tests failure + * Fri Jan 13 2012 Fedora Release Engineering - 2.2.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild