[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 04/19] tests/tcg: comment unused code
From: |
Alex Bennée |
Subject: |
Re: [Qemu-devel] [PATCH 04/19] tests/tcg: comment unused code |
Date: |
Fri, 09 Dec 2016 17:15:37 +0000 |
User-agent: |
mu4e 0.9.18; emacs 25.1.90.2 |
Pranith Kumar <address@hidden> writes:
> From: Marc-André Lureau <address@hidden>
>
> I didn't remove it, as suggest by checkpatch, because it looks like it
> may eventually be restored back.
I'm not so sure, especially with having full source control. Either fix
it or delete it please.
>
> Signed-off-by: Marc-André Lureau <address@hidden>
> Signed-off-by: Pranith Kumar <address@hidden>
> ---
> tests/tcg/linux-test.c | 8 ++++++--
> tests/tcg/test-i386-fprem.c | 4 ++++
> 2 files changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/tests/tcg/linux-test.c b/tests/tcg/linux-test.c
> index 5070d31..38d163c 100644
> --- a/tests/tcg/linux-test.c
> +++ b/tests/tcg/linux-test.c
> @@ -350,6 +350,7 @@ void test_socket(void)
>
> #define WCOUNT_MAX 512
>
> +#if 0
> void test_pipe(void)
> {
> fd_set rfds, wfds;
> @@ -421,11 +422,13 @@ void test_clone(void)
>
> stack1 = malloc(STACK_SIZE);
> pid1 = chk_error(clone(thread1_func, stack1 + STACK_SIZE,
> - CLONE_VM | CLONE_FS | CLONE_FILES | SIGCHLD,
> "hello1"));
> + CLONE_VM | CLONE_FS | CLONE_FILES |
> + SIGCHLD, (void *)"hello1"));
>
> stack2 = malloc(STACK_SIZE);
> pid2 = chk_error(clone(thread2_func, stack2 + STACK_SIZE,
> - CLONE_VM | CLONE_FS | CLONE_FILES | SIGCHLD,
> "hello2"));
> + CLONE_VM | CLONE_FS | CLONE_FILES | SIGCHLD,
> + (void *)"hello2"));
>
> while (waitpid(pid1, &status1, 0) != pid1);
> free(stack1);
> @@ -435,6 +438,7 @@ void test_clone(void)
> thread2_res != 6)
> error("clone");
> }
> +#endif
>
> /***********************************/
>
> diff --git a/tests/tcg/test-i386-fprem.c b/tests/tcg/test-i386-fprem.c
> index 1a71623..1a2b144 100644
> --- a/tests/tcg/test-i386-fprem.c
> +++ b/tests/tcg/test-i386-fprem.c
> @@ -54,6 +54,7 @@ union float80u {
>
> #define IEEE854_LONG_DOUBLE_BIAS 0x3fff
>
> +#if 0
> static const union float80u q_nan = {
> .ieee_nan.negative = 0, /* X */
> .ieee_nan.exponent = 0x7fff,
> @@ -61,6 +62,7 @@ static const union float80u q_nan = {
> .ieee_nan.quiet_nan = 1,
> .ieee_nan.mantissa = 0,
> };
> +#endif
>
> static const union float80u s_nan = {
> .ieee_nan.negative = 0, /* X */
> @@ -91,12 +93,14 @@ static const union float80u pos_denorm = {
> .ieee.mantissa = 1,
> };
>
> +#if 0
> static const union float80u smallest_positive_norm = {
> .ieee.negative = 0,
> .ieee.exponent = 1,
> .ieee.one = 1,
> .ieee.mantissa = 0,
> };
> +#endif
>
> static void fninit()
> {
--
Alex Bennée
- [Qemu-devel] [PATCH v5 00/19] Cleanup of TCG tests, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 02/19] linux-user: fix tcg/mmap test, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 01/19] linux-user: fix settime old value location, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 04/19] tests/tcg: comment unused code, Pranith Kumar, 2016/12/01
- Re: [Qemu-devel] [PATCH 04/19] tests/tcg: comment unused code,
Alex Bennée <=
- [Qemu-devel] [PATCH 03/19] check-help: add some hint to run a single test, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 07/19] linux-test: fix set/getitimer returned timer check, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 06/19] linux-test: fix build, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 08/19] Fix test-i386-fprem compilation, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 09/19] test-i386: modernize vector code v4sf, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 10/19] tests/tcg: Move arm tests to arch specific folder, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 12/19] tests/tcg: Add tests-tcg hook in Makefile, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 14/19] tests/tcg: Move i386 tests to arch specific folder, Pranith Kumar, 2016/12/01