summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/tar/tar/0002-tests-check-for-recently-fixed-bug.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/tar/tar/0002-tests-check-for-recently-fixed-bug.patch')
-rw-r--r--meta/recipes-extended/tar/tar/0002-tests-check-for-recently-fixed-bug.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/meta/recipes-extended/tar/tar/0002-tests-check-for-recently-fixed-bug.patch b/meta/recipes-extended/tar/tar/0002-tests-check-for-recently-fixed-bug.patch
new file mode 100644
index 0000000000..6cd8c5510f
--- /dev/null
+++ b/meta/recipes-extended/tar/tar/0002-tests-check-for-recently-fixed-bug.patch
@@ -0,0 +1,60 @@
1From 0f0722df45ec520d0dac7c9ad7e69165e9140931 Mon Sep 17 00:00:00 2001
2From: Paul Eggert <eggert@cs.ucla.edu>
3Date: Fri, 7 Oct 2022 15:22:07 -0700
4Subject: tests: check for recently-fixed bug
5
6* tests/exclude17.at: New file.
7
8Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/tar.git/commit/?id=0f0722df45ec520d0dac7c9ad7e69165e9140931]
9
10Signed-off-by: Qiu Tingting <qiutt@fujitsu.com>
11
12---
13 tests/exclude17.at | 35 +++++++++++++++++++++++++++++++++++
14 1 files changed, 35 insertions(+)
15 create mode 100644 tests/exclude17.at
16
17diff --git a/tests/exclude17.at b/tests/exclude17.at
18new file mode 100644
19index 0000000..4162b2b
20--- /dev/null
21+++ b/tests/exclude17.at
22@@ -0,0 +1,35 @@
23+# Process this file with autom4te to create testsuite. -*- Autotest -*-
24+#
25+# Test suite for GNU tar.
26+# Copyright 2013-2022 Free Software Foundation, Inc.
27+
28+# This file is part of GNU tar.
29+
30+# GNU tar is free software; you can redistribute it and/or modify
31+# it under the terms of the GNU General Public License as published by
32+# the Free Software Foundation; either version 3 of the License, or
33+# (at your option) any later version.
34+
35+# GNU tar is distributed in the hope that it will be useful,
36+# but WITHOUT ANY WARRANTY; without even the implied warranty of
37+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38+# GNU General Public License for more details.
39+
40+# You should have received a copy of the GNU General Public License
41+# along with this program. If not, see <http://www.gnu.org/licenses/>.
42+
43+AT_SETUP([--exclude-vcs-ignores memory allocation])
44+AT_KEYWORDS([exclude exclude17])
45+
46+AT_TAR_CHECK([
47+mkdir dir
48+cd dir
49+echo '*.o' >.cvsignore
50+tar -cf - --exclude-vcs-ignores . | tar -tf -
51+],
52+[0],
53+[./
54+./.cvsignore
55+])
56+
57+AT_CLEANUP
58--
59cgit v1.1
60