[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 14/57] tests/tcg/multiarch: move most output to st
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PULL v2 14/57] tests/tcg/multiarch: move most output to stdout |
Date: |
Thu, 21 Jun 2018 07:25:22 +0100 |
The default test run outputs to stdout so it can be re-directed.
Errors are still reported to stderr.
Signed-off-by: Alex Bennée <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
diff --git a/tests/tcg/multiarch/test-mmap.c b/tests/tcg/multiarch/test-mmap.c
index cdefadfa4c..5c0afe6e49 100644
--- a/tests/tcg/multiarch/test-mmap.c
+++ b/tests/tcg/multiarch/test-mmap.c
@@ -36,7 +36,7 @@
do \
{ \
if (!(x)) { \
- fprintf (stderr, "FAILED at %s:%d\n", __FILE__, __LINE__); \
+ fprintf(stderr, "FAILED at %s:%d\n", __FILE__, __LINE__); \
exit (EXIT_FAILURE); \
} \
} while (0)
@@ -57,7 +57,7 @@ void check_aligned_anonymous_unfixed_mmaps(void)
uintptr_t p;
int i;
- fprintf (stderr, "%s", __func__);
+ fprintf(stdout, "%s", __func__);
for (i = 0; i < 0x1fff; i++)
{
size_t len;
@@ -106,7 +106,7 @@ void check_aligned_anonymous_unfixed_mmaps(void)
munmap (p4, len);
munmap (p5, len);
}
- fprintf (stderr, " passed\n");
+ fprintf(stdout, " passed\n");
}
void check_large_anonymous_unfixed_mmap(void)
@@ -115,7 +115,7 @@ void check_large_anonymous_unfixed_mmap(void)
uintptr_t p;
size_t len;
- fprintf (stderr, "%s", __func__);
+ fprintf(stdout, "%s", __func__);
len = 0x02000000;
p1 = mmap(NULL, len, PROT_READ,
@@ -130,7 +130,7 @@ void check_large_anonymous_unfixed_mmap(void)
/* Make sure we can read from the entire area. */
memcpy (dummybuf, p1, pagesize);
munmap (p1, len);
- fprintf (stderr, " passed\n");
+ fprintf(stdout, " passed\n");
}
void check_aligned_anonymous_unfixed_colliding_mmaps(void)
@@ -141,7 +141,7 @@ void check_aligned_anonymous_unfixed_colliding_mmaps(void)
uintptr_t p;
int i;
- fprintf (stderr, "%s", __func__);
+ fprintf(stdout, "%s", __func__);
for (i = 0; i < 0x2fff; i++)
{
int nlen;
@@ -180,7 +180,7 @@ void check_aligned_anonymous_unfixed_colliding_mmaps(void)
munmap (p2, pagesize);
munmap (p3, nlen);
}
- fprintf (stderr, " passed\n");
+ fprintf(stdout, " passed\n");
}
void check_aligned_anonymous_fixed_mmaps(void)
@@ -194,7 +194,7 @@ void check_aligned_anonymous_fixed_mmaps(void)
addr = mmap(NULL, pagesize * 40, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANONYMOUS,
-1, 0);
- fprintf (stderr, "%s addr=%p", __func__, addr);
+ fprintf(stdout, "%s addr=%p", __func__, addr);
fail_unless (addr != MAP_FAILED);
for (i = 0; i < 40; i++)
@@ -212,7 +212,7 @@ void check_aligned_anonymous_fixed_mmaps(void)
munmap (p1, pagesize);
addr += pagesize;
}
- fprintf (stderr, " passed\n");
+ fprintf(stdout, " passed\n");
}
void check_aligned_anonymous_fixed_mmaps_collide_with_host(void)
@@ -225,8 +225,8 @@ void
check_aligned_anonymous_fixed_mmaps_collide_with_host(void)
/* Find a suitable address to start with. Right were the x86 hosts
stack is. */
addr = ((void *)0x80000000);
- fprintf (stderr, "%s addr=%p", __func__, addr);
- fprintf (stderr, "FIXME: QEMU fails to track pages used by the host.");
+ fprintf(stdout, "%s addr=%p", __func__, addr);
+ fprintf(stdout, "FIXME: QEMU fails to track pages used by the host.");
for (i = 0; i < 20; i++)
{
@@ -243,7 +243,7 @@ void
check_aligned_anonymous_fixed_mmaps_collide_with_host(void)
munmap (p1, pagesize);
addr += pagesize;
}
- fprintf (stderr, " passed\n");
+ fprintf(stdout, " passed\n");
}
void check_file_unfixed_mmaps(void)
@@ -252,7 +252,7 @@ void check_file_unfixed_mmaps(void)
uintptr_t p;
int i;
- fprintf (stderr, "%s", __func__);
+ fprintf(stdout, "%s", __func__);
for (i = 0; i < 0x10; i++)
{
size_t len;
@@ -294,7 +294,7 @@ void check_file_unfixed_mmaps(void)
munmap (p2, len);
munmap (p3, len);
}
- fprintf (stderr, " passed\n");
+ fprintf(stdout, " passed\n");
}
void check_file_unfixed_eof_mmaps(void)
@@ -304,7 +304,7 @@ void check_file_unfixed_eof_mmaps(void)
uintptr_t p;
int i;
- fprintf (stderr, "%s", __func__);
+ fprintf(stdout, "%s", __func__);
for (i = 0; i < 0x10; i++)
{
p1 = mmap(NULL, pagesize, PROT_READ,
@@ -327,7 +327,7 @@ void check_file_unfixed_eof_mmaps(void)
fail_unless (cp[pagesize - 4] == 0);
munmap (p1, pagesize);
}
- fprintf (stderr, " passed\n");
+ fprintf(stdout, " passed\n");
}
void check_file_fixed_eof_mmaps(void)
@@ -343,7 +343,7 @@ void check_file_fixed_eof_mmaps(void)
MAP_PRIVATE | MAP_ANONYMOUS,
-1, 0);
- fprintf (stderr, "%s addr=%p", __func__, (void *)addr);
+ fprintf(stdout, "%s addr=%p", __func__, (void *)addr);
fail_unless (addr != MAP_FAILED);
for (i = 0; i < 0x10; i++)
@@ -371,7 +371,7 @@ void check_file_fixed_eof_mmaps(void)
munmap (p1, pagesize);
addr += pagesize;
}
- fprintf (stderr, " passed\n");
+ fprintf(stdout, " passed\n");
}
void check_file_fixed_mmaps(void)
@@ -384,7 +384,7 @@ void check_file_fixed_mmaps(void)
addr = mmap(NULL, pagesize * 40 * 4, PROT_READ,
MAP_PRIVATE | MAP_ANONYMOUS,
-1, 0);
- fprintf (stderr, "%s addr=%p", __func__, (void *)addr);
+ fprintf(stdout, "%s addr=%p", __func__, (void *)addr);
fail_unless (addr != MAP_FAILED);
for (i = 0; i < 40; i++)
@@ -426,7 +426,7 @@ void check_file_fixed_mmaps(void)
munmap (p4, pagesize);
addr += pagesize * 4;
}
- fprintf (stderr, " passed\n");
+ fprintf(stdout, " passed\n");
}
void checked_write(int fd, const void *buf, size_t count)
--
2.17.1
- [Qemu-devel] [PULL v2 22/57] tests/tcg/i386/test-i386: fix printf format, (continued)
- [Qemu-devel] [PULL v2 22/57] tests/tcg/i386/test-i386: fix printf format, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 40/57] tests/tcg: enable building for mips64, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 11/57] tests/tcg/multiarch: Build fix for linux-test, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 30/57] tests/docker/Makefile.include: fix mipsel-cross dependancy, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 34/57] tests/tcg: enable building for Alpha, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 35/57] tests/tcg/alpha: add Alpha specific tests, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 23/57] tests/tcg: move ARM specific tests into subdir, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 37/57] tests/tcg: enable building for m68k, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 24/57] tests/tcg: enable building for ARM, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 26/57] tests/tcg: enable building for AArch64, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 14/57] tests/tcg/multiarch: move most output to stdout,
Alex Bennée <=
- [Qemu-devel] [PULL v2 36/57] tests/tcg: enable building for HPPA, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 31/57] tests/tcg/mips: include common mips hello-mips, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 29/57] tests/tcg: enable building for MIPS, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 20/57] tests/tcg/x86_64: add Makefile.target, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 50/57] tests: add top-level make dependency for docker builds, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 16/57] tests/tcg: enable building for i386, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 42/57] docker: move debian-powerpc-cross to sid based build, Alex Bennée, 2018/06/21
- [Qemu-devel] [PULL v2 18/57] tests/tcg/i386: fix test-i386, Alex Bennée, 2018/06/21
- Re: [Qemu-devel] [PULL v2 00/57] add check-tcg and associated machinery, Peter Maydell, 2018/06/21