summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/ltp/ltp/0001-file01.sh-Fix-in-was-not-recognized.patch38
-rw-r--r--meta/recipes-extended/ltp/ltp_20190115.bb3
2 files changed, 40 insertions, 1 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0001-file01.sh-Fix-in-was-not-recognized.patch b/meta/recipes-extended/ltp/ltp/0001-file01.sh-Fix-in-was-not-recognized.patch
new file mode 100644
index 0000000000..5cd9e082f2
--- /dev/null
+++ b/meta/recipes-extended/ltp/ltp/0001-file01.sh-Fix-in-was-not-recognized.patch
@@ -0,0 +1,38 @@
1From 974e9b862e503c50501079e6586f81918e94a849 Mon Sep 17 00:00:00 2001
2From: He Zhe <zhe.he@windriver.com>
3Date: Fri, 19 Apr 2019 17:57:48 +0800
4Subject: [PATCH] file01.sh: Fix in was not recognized
5
6Some file has "pie" appending after LSB or MSB, which causes mismatch and the
7following error.
8
9"file01 10 TFAIL: in: was not recognized"
10..."ELF 64-bit LSB pie executable"...
11
12This patches tunes the regulation expression to include those cases.
13
14Upstream-Status: Submitted [http://lists.linux.it/pipermail/ltp/2019-April/011758.html]
15
16Signed-off-by: He Zhe <zhe.he@windriver.com>
17---
18 testcases/commands/file/file01.sh | 4 +++-
19 1 file changed, 3 insertions(+), 1 deletion(-)
20
21diff --git a/testcases/commands/file/file01.sh b/testcases/commands/file/file01.sh
22index 0a8119e..55c0433 100755
23--- a/testcases/commands/file/file01.sh
24+++ b/testcases/commands/file/file01.sh
25@@ -91,7 +91,9 @@ do_test()
26 9) file_test in.m4 "M4 macro processor script, ASCII text" \
27 "ASCII M4 macro language pre-processor text";;
28 10) file_test in "ELF .*-bit $TEST_ARCH executable, .*" \
29- "ELF .*-bit $TEST_ARCH shared object, .*";;
30+ "ELF .*-bit $TEST_ARCH shared object, .*" \
31+ "ELF .*-bit $TEST_ARCH pie executable, .*" \
32+ "ELF .*-bit $TEST_ARCH pie shared object, .*";;
33 11) file_test in.ar "current ar archive";;
34 12) file_test in.tar "tar archive";;
35 13) file_test in.tar.gz "gzip compressed data, .*";;
36--
372.7.4
38
diff --git a/meta/recipes-extended/ltp/ltp_20190115.bb b/meta/recipes-extended/ltp/ltp_20190115.bb
index b8a7e673d3..b7b581f65a 100644
--- a/meta/recipes-extended/ltp/ltp_20190115.bb
+++ b/meta/recipes-extended/ltp/ltp_20190115.bb
@@ -51,7 +51,8 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \
51 file://setregid01-security-string-formatting.patch \ 51 file://setregid01-security-string-formatting.patch \
52 file://0001-syscalls-setrlimit03.c-read-proc-sys-fs-nr_open-for-.patch \ 52 file://0001-syscalls-setrlimit03.c-read-proc-sys-fs-nr_open-for-.patch \
53 file://0001-shmctl01-don-t-use-hardcoded-index-0-for-SHM_STAT-te.patch \ 53 file://0001-shmctl01-don-t-use-hardcoded-index-0-for-SHM_STAT-te.patch \
54 file://0001-diotest4-Let-kernel-pick-an-address-when-calling-mma.patch\ 54 file://0001-diotest4-Let-kernel-pick-an-address-when-calling-mma.patch \
55 file://0001-file01.sh-Fix-in-was-not-recognized.patch \
55 " 56 "
56 57
57S = "${WORKDIR}/git" 58S = "${WORKDIR}/git"