[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 15/49] tests/tcg/multiarch: move most output to s
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PATCH v5 15/49] tests/tcg/multiarch: move most output to stdout |
Date: |
Fri, 25 May 2018 14:38:17 +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>
---
v4
- remove space in fprintf () to keep checkpatch happy
---
tests/tcg/multiarch/test-mmap.c | 40 ++++++++++++++++-----------------
1 file changed, 20 insertions(+), 20 deletions(-)
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.0
- [Qemu-devel] [PATCH v5 04/49] configure: move i386_cc to cross_cc_i386, (continued)
- [Qemu-devel] [PATCH v5 04/49] configure: move i386_cc to cross_cc_i386, Alex Bennée, 2018/05/25
- [Qemu-devel] [PATCH v5 03/49] configure: add support for --cross-cc-FOO, Alex Bennée, 2018/05/25
- [Qemu-devel] [PATCH v5 08/49] docker: Add "cc" subcommand, Alex Bennée, 2018/05/25
- [Qemu-devel] [PATCH v5 07/49] Makefile: Rename TARGET_DIRS to TARGET_LIST, Alex Bennée, 2018/05/25
- [Qemu-devel] [PATCH v5 11/49] docker: Makefile.include introduce DOCKER_SCRIPT, Alex Bennée, 2018/05/25
- [Qemu-devel] [PATCH v5 10/49] docker: allow "cc" command to run in user context, Alex Bennée, 2018/05/25
- [Qemu-devel] [PATCH v5 12/49] tests/tcg: move architecture independent tests into subdir, Alex Bennée, 2018/05/25
- [Qemu-devel] [PATCH v5 16/49] tests/tcg: move i386 specific tests into subdir, Alex Bennée, 2018/05/25
- [Qemu-devel] [PATCH v5 09/49] docker: extend "cc" command to accept compiler, Alex Bennée, 2018/05/25
- [Qemu-devel] [PATCH v5 18/49] tests/tcg: enable building for i386, Alex Bennée, 2018/05/25
- [Qemu-devel] [PATCH v5 15/49] tests/tcg/multiarch: move most output to stdout,
Alex Bennée <=
- [Qemu-devel] [PATCH v5 20/49] tests/tcg/i386: fix test-i386, Alex Bennée, 2018/05/25
- [Qemu-devel] [PATCH v5 19/49] tests/tcg/i386: Build fix for hello-i386, Alex Bennée, 2018/05/25
- [Qemu-devel] [PATCH v5 14/49] tests/tcg/multiarch: enable additional linux-test tests, Alex Bennée, 2018/05/25
- [Qemu-devel] [PATCH v5 13/49] tests/tcg/multiarch: Build fix for linux-test, Alex Bennée, 2018/05/25
- [Qemu-devel] [PATCH v5 17/49] docker: Add fedora-i386-cross image, Alex Bennée, 2018/05/25
- [Qemu-devel] [PATCH v5 22/49] tests/tcg/x86_64: add Makefile.target, Alex Bennée, 2018/05/25