All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: kvm@vger.kernel.org, Paolo Bonzini <pbonzini@redhat.com>,
	Thomas Huth <thuth@redhat.com>,
	Christian Borntraeger <borntraeger@de.ibm.com>,
	Cornelia Huck <cornelia.huck@de.ibm.com>
Subject: Re: [kvm-unit-tests PATCH v1 2/6] s390x: basic self test
Date: Wed, 17 May 2017 18:50:47 +0200	[thread overview]
Message-ID: <d6d19d2c-d4d6-b414-63ba-317e8cd975ea@redhat.com> (raw)
In-Reply-To: <20170517131222.GA7101@potion>


>>>> +	if (strcmp(argv[1], "test") != 0)
>>>> +		report_abort("wrong parameter value");
>>>> +	if (strcmp(argv[2], "123") != 0)
>>>> +		report_abort("wrong parameter value");
>>>> +
>>>> +	report("test true", true, 0);
>>>                                   ^
>>> It seems you'll be doing v2 -- please remove this zero in it.
>>
>> Thanks, if that would throw an error during compile time like printf, it
>> would be perfect.
>>
>> Yes, I'll resend!
> 
> Thinking more about it, the test would look better if we used report()
> instead of if()+report_abort() and a final report, something like:
> 
>   report("argv[0] == PROGNAME", !strcmp(argv[0], "s390x/selftest.elf"));
>   report("argv[1] == test",     !strcmp(argv[1], "test"));
>   report("argv[2] == 123",      !strcmp(argv[2], "123"));
> 
> This is also a nitpick and I'll gladly accept the original version. :)
> 

Thanks - I'll add that change and send a new version out tomorrow.

-- 

Thanks,

David

  reply	other threads:[~2017-05-17 16:50 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-12 10:58 [kvm-unit-tests PATCH v1 0/6] s390x: basic test infrastructure David Hildenbrand
2017-05-12 10:58 ` [kvm-unit-tests PATCH v1 1/6] s390x: initial infrastructure David Hildenbrand
2017-05-15  9:19   ` Christian Borntraeger
2017-05-16  7:54     ` David Hildenbrand
2017-05-16  7:58       ` Christian Borntraeger
2017-05-16  8:21         ` David Hildenbrand
2017-05-12 10:58 ` [kvm-unit-tests PATCH v1 2/6] s390x: basic self test David Hildenbrand
2017-05-16 13:35   ` Radim Krčmář
2017-05-16 19:16     ` David Hildenbrand
2017-05-17 13:12       ` Radim Krčmář
2017-05-17 16:50         ` David Hildenbrand [this message]
2017-05-12 10:58 ` [kvm-unit-tests PATCH v1 3/6] s390x: copy sclp.h and sclp-ascii.c from QEMU David Hildenbrand
2017-05-12 10:58 ` [kvm-unit-tests PATCH v1 4/6] s390x: compile sclp-ascii.c David Hildenbrand
2017-05-12 10:58 ` [kvm-unit-tests PATCH v1 5/6] s390x: wire up sclp console output David Hildenbrand
2017-05-12 10:58 ` [kvm-unit-tests PATCH v1 6/6] MAINTAINERS: add s390x maintainers David Hildenbrand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d6d19d2c-d4d6-b414-63ba-317e8cd975ea@redhat.com \
    --to=david@redhat.com \
    --cc=borntraeger@de.ibm.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=rkrcmar@redhat.com \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.