summaryrefslogtreecommitdiff
path: root/package/ltp-testsuite/0002-uClibc-ng-has-no-profil-support.patch
blob: c1496037c16b3ef71da5e8c6316147b6f2634cfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From 4ab7dc5fd201318e2a62dbd3ba1680b97034ec65 Mon Sep 17 00:00:00 2001
From: Erico Nunes <nunes.erico@gmail.com>
Date: Fri, 30 Sep 2016 17:45:03 +0200
Subject: [PATCH] uClibc-ng has no profil() support

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
[Erico: Rebase for ltp 20160920]
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
---
 testcases/kernel/syscalls/profil/profil01.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/testcases/kernel/syscalls/profil/profil01.c b/testcases/kernel/syscalls/profil/profil01.c
index 2fc47aa..f8afd57 100644
--- a/testcases/kernel/syscalls/profil/profil01.c
+++ b/testcases/kernel/syscalls/profil/profil01.c
@@ -37,6 +37,9 @@
 #define PROFIL_BUFLEN (32*1024)
 
 char *TCID = "profil01";
+
+#if !defined(__UCLIBC__)
+
 int TST_TOTAL = 1;
 
 static volatile sig_atomic_t profil_done;
@@ -124,3 +127,9 @@ int main(int ac, char *av[])
 
 	tst_exit();
 }
+#else /* systems that dont support profil */
+int main(void)
+{
+        tst_brkm(TCONF, NULL, "system doesn't have profil support");
+}
+#endif
-- 
2.7.4