Skip to contentSkip to conversation

ltp/posix: backport two patches to fix some tests

PATCH New [email protected] 1 participant 3 messages Dec 12, 2016

lore
Share & tools
lore
#0 lore raw

cover ltp/posix: backport two patches to fix some tests

From: Jackie Huang <[email protected]>

--
The following changes since commit dae00fbb913c24b6bab00d5b99bd61f3455b4728:

sdk-manual: Added note about nullpointer error for launch eclipse (2016-12-08 16:36:40 +0000)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib.git jhuang0/d_ltp_161212-0
http://git.pokylinux.org/cgit.cgi//log/?h=jhuang0/d_ltp_161212-0

Jackie Huang (2):
ltp: avoid segmentation fault in netns tests
ltp/posix: replace CWD with PWD

 ...twork-nfsv4-acl-acl1.c-Security-fix-on-s.patch} |  0
 ...rs-netns_netlink-Avoid-segmentation-fault.patch | 50 ++++++++++++++++++++++
 ...ix-option-group-test-replace-CWD-qith-PWD.patch | 44 +++++++++++++++++++
 meta/recipes-extended/ltp/ltp_20160126.bb          |  4 +-
 4 files changed, 97 insertions(+), 1 deletion(-)
 rename meta/recipes-extended/ltp/ltp/{0001-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch => 0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch} (100%)
 create mode 100644 meta/recipes-extended/ltp/ltp/0037-containers-netns_netlink-Avoid-segmentation-fault.patch
 create mode 100644 meta/recipes-extended/ltp/ltp/0038-run-posix-option-group-test-replace-CWD-qith-PWD.patch
Signature · 1 line
2.8.3
#1 lore raw

PATCH 1/2 ltp: avoid segmentation fault in netns tests

From: Jackie Huang <[email protected]>

* backport a patch to avoid segmentation
fault in netns tests.

* rename previous patch to have ordered
prefix number.

---
 ...twork-nfsv4-acl-acl1.c-Security-fix-on-s.patch} |  0
 ...rs-netns_netlink-Avoid-segmentation-fault.patch | 50 ++++++++++++++++++++++
 meta/recipes-extended/ltp/ltp_20160126.bb          |  3 +-
 3 files changed, 52 insertions(+), 1 deletion(-)
 rename meta/recipes-extended/ltp/ltp/{0001-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch => 0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch} (100%)
 create mode 100644 meta/recipes-extended/ltp/ltp/0037-containers-netns_netlink-Avoid-segmentation-fault.patch
meta/recipes-extended/ltp/ltp/0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch renamed from meta/recipes-extended/ltp/ltp/0001-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch +0 -0
similarity index 100%
rename from meta/recipes-extended/ltp/ltp/0001-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch
rename to meta/recipes-extended/ltp/ltp/0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch
meta/recipes-extended/ltp/ltp/0037-containers-netns_netlink-Avoid-segmentation-fault.patch new file +50 -0

50 lines not on this page · raw message

meta/recipes-extended/ltp/ltp_20160126.bb +2 -1
index 7ee84e3..841302b 100644
@@ -62,7 +62,8 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \
            file://0033-shmat1-Cover-GNU-specific-code-under-__USE_GNU.patch \
            file://0034-periodic_output.patch \
            file://0035-fix-test_proc_kill-hang.patch \
-           file://0001-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \
+           file://0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \
+           file://0037-containers-netns_netlink-Avoid-segmentation-fault.patch \
            "
 
 S = "${WORKDIR}/git"
Signature · 1 line
2.8.3
#2 lore raw

PATCH 2/2 ltp/posix: replace CWD with PWD

In reply to [email protected]

From: Jackie Huang <[email protected]>

Backport a patch to replace CWD with PWD to avoid
error messages in test results:

basename: missing operand
Try 'basename --help' for more information.

---
 ...ix-option-group-test-replace-CWD-qith-PWD.patch | 44 ++++++++++++++++++++++
 meta/recipes-extended/ltp/ltp_20160126.bb          |  1 +
 2 files changed, 45 insertions(+)
 create mode 100644 meta/recipes-extended/ltp/ltp/0038-run-posix-option-group-test-replace-CWD-qith-PWD.patch
meta/recipes-extended/ltp/ltp/0038-run-posix-option-group-test-replace-CWD-qith-PWD.patch new file +44 -0
new file mode 100644
index 0000000..8034152
@@ -0,0 +1,44 @@
+From f356775c400f40e3803d80a7bd295b4265959c45 Mon Sep 17 00:00:00 2001
+From: Vineet Gupta <[email protected]>
+Date: Mon, 29 Feb 2016 14:34:40 +0530
+Subject: [PATCH] run-posix-option-group-test: replace CWD qith PWD
+
+When running LTP Open Posix Testsuite there is lot of messages as:
+
+| Usage: basename FILE [SUFFIX]
+|
+| Strip directory path and .SUFFIX from FILE
+|
+| *******************
+| Testing
+| *******************
+
+This is because there is no $CWD defined in shell and it looks like $PWD
+was intended instead.
+
+Signed-off-by: Vineet Gupta <[email protected]>
+Signed-off-by: Cyril Hrubis <[email protected]>
+
+Upstream-Status: Backport
+
+Signed-off-by: Jackie Huang <[email protected]>
+---
+ testcases/open_posix_testsuite/bin/run-tests.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/testcases/open_posix_testsuite/bin/run-tests.sh b/testcases/open_posix_testsuite/bin/run-tests.sh
+index d4bd988..5ee5687 100755
+--- a/testcases/open_posix_testsuite/bin/run-tests.sh
++++ b/testcases/open_posix_testsuite/bin/run-tests.sh
+@@ -29,7 +29,7 @@ run_test_loop() {
+ 
+ 	cat <<EOF
+ *******************
+-Testing $(basename $CWD)
++Testing $(basename $PWD)
+ *******************
+ $(printf "PASS\t\t%3d" $NUM_PASS)
+ $(printf "FAIL\t\t%3d" $NUM_FAIL)
+-- 
+2.7.4
+
meta/recipes-extended/ltp/ltp_20160126.bb +1 -0
index 841302b..6e2ceac 100644
@@ -64,6 +64,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \
            file://0035-fix-test_proc_kill-hang.patch \
            file://0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \
            file://0037-containers-netns_netlink-Avoid-segmentation-fault.patch \
+           file://0038-run-posix-option-group-test-replace-CWD-qith-PWD.patch \
            "
 
 S = "${WORKDIR}/git"
Signature · 1 line
2.8.3