summaryrefslogtreecommitdiff
path: root/toolchain/uclibc/patches/0.9.34-git/0002-test-skip-test-for-non-mmu-case.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-08-28 22:54:49 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-08-28 22:54:49 +0200
commit75f6c379c5f19b99ea5488a73aac91f29a51273e (patch)
tree274d97a0e11443cd577873f58124b3e8f8445d7b /toolchain/uclibc/patches/0.9.34-git/0002-test-skip-test-for-non-mmu-case.patch
parente08bf157776a3cdfffa885b41874107c6a060444 (diff)
sync uClibc patches, use only git for uCLibc-ng for now.
Diffstat (limited to 'toolchain/uclibc/patches/0.9.34-git/0002-test-skip-test-for-non-mmu-case.patch')
-rw-r--r--toolchain/uclibc/patches/0.9.34-git/0002-test-skip-test-for-non-mmu-case.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/toolchain/uclibc/patches/0.9.34-git/0002-test-skip-test-for-non-mmu-case.patch b/toolchain/uclibc/patches/0.9.34-git/0002-test-skip-test-for-non-mmu-case.patch
new file mode 100644
index 000000000..344aab57b
--- /dev/null
+++ b/toolchain/uclibc/patches/0.9.34-git/0002-test-skip-test-for-non-mmu-case.patch
@@ -0,0 +1,44 @@
+From fd8d6c5d6bebff0b3a106364e26e75399880b34b Mon Sep 17 00:00:00 2001
+From: Waldemar Brodkorb <wbx@openadk.org>
+Date: Thu, 28 Aug 2014 22:49:10 +0200
+Subject: [PATCH 2/2] test: skip test for non-mmu case
+
+Non-mmu targets have no fork(). In the case of vfork(),
+we can not test communication between parent and child
+in this way.
+
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+---
+ test/librt/shmtest.c | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/test/librt/shmtest.c b/test/librt/shmtest.c
+index a14302d..2be09cc 100644
+--- a/test/librt/shmtest.c
++++ b/test/librt/shmtest.c
+@@ -14,6 +14,8 @@
+ #include <sys/stat.h>
+ #include <sys/wait.h>
+
++#ifdef __ARCH_USE_MMU__
++
+ #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+
+ char shared_name[] = "/sharetest";
+@@ -102,3 +104,13 @@ int main(void) {
+ }
+ return 0;
+ }
++
++#else
++
++int main(void)
++{
++ printf("Skipping test on non-mmu host!\n");
++ return EXIT_SUCCESS;
++}
++
++#endif
+--
+1.8.5.2 (Apple Git-48)
+