aboutsummaryrefslogtreecommitdiff
path: root/testcases/kernel
diff options
context:
space:
mode:
authorPetr Vorel <petr.vorel@gmail.com>2019-03-18 02:49:06 +0100
committerPetr Vorel <petr.vorel@gmail.com>2019-03-18 19:35:27 +0100
commitd2969c93ae77f56d5962f344d8f133aecac690f2 (patch)
tree87dd3cda13cbddc0de8d73a217e3bb856dad2775 /testcases/kernel
parenta601a7ea8cd8586ba9fab882bc517f84249a2321 (diff)
mallopt: Test only on glibc
Test works with is glibc specific definitions M_MXFAST , M_NLBLKS, which aren't supported on other libc (uClibc, MUSL, Bionic), probably no other libc will ever define. uClibc also defines them in headers, that's we explicitly check glibc. Acked-by: Cyril Hrubis <chrubis@suse.cz> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Diffstat (limited to 'testcases/kernel')
-rw-r--r--testcases/kernel/syscalls/mallopt/mallopt01.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testcases/kernel/syscalls/mallopt/mallopt01.c b/testcases/kernel/syscalls/mallopt/mallopt01.c
index 416fc48be..14e26dd81 100644
--- a/testcases/kernel/syscalls/mallopt/mallopt01.c
+++ b/testcases/kernel/syscalls/mallopt/mallopt01.c
@@ -63,7 +63,7 @@ extern int tst_COUNT; /* Test Case counter for tst_routines */
void printinfo();
-#if !defined(UCLINUX)
+#if defined(__GLIBC__)
struct mallinfo info;
int main(int argc, char *argv[])
@@ -150,6 +150,6 @@ void printinfo(void)
#else
int main(void)
{
- tst_brkm(TCONF, NULL, "test is not available on uClinux");
+ tst_brkm(TCONF, NULL, "mallopt defined only for glibc");
}
-#endif /* if !defined(UCLINUX) */
+#endif