public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Jeff McGee <jeff.mcgee@intel.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: intel-gfx <intel-gfx@lists.freedesktop.org>
Subject: Re: IGT conventions
Date: Thu, 16 Jan 2014 10:43:36 -0600	[thread overview]
Message-ID: <20140116164336.GD14542@jeffdesk> (raw)
In-Reply-To: <CAKMK7uFX+C9NRWFj=KbmJnF24mFqUhLsZAW1ChsSEW6ZiE3FsQ@mail.gmail.com>

On Thu, Jan 16, 2014 at 10:27:03AM +0100, Daniel Vetter wrote:
> On Thu, Jan 16, 2014 at 12:55 AM, Daniel Vetter <daniel@ffwll.ch> wrote:
> > Anything you put out to stderr will be tracked as a "warn" in piglit. Atm
> > we don't have any such use-case though I think, mostly since keeping
> > unbuffer stderr and buffered stdout in sync is a pain ;-) But I guess we
> > could formalize this a bit if you see it useful for you with a
> >
> > #define igt_warn(a...) fprintf(stderr, a)
> >
> > or something like that. Some of the checks in kms_flip.c might benefit
> > from this, since on a lot of our platforms the rather stringent timing
> > checks often fail randomly. But besides such corner-cases I kinda prefer
> > if we just split up testcases more instead of trying to be really clever
> > with the level of fail encounter and reported.
> 
> Actually if we put an fflush(stdout); before the fprintf then we would
> not have any issues with buffered vs. unbuffered. And for consistency
> maybe we could define igt_warn as just fputs and igt_warn_f as the
> full printf thing.
> 
> If you think this is useful for your tests then I'll happily merge a
> patch to add igt_warn*

Thanks for all the feedback. I'll see if something like this is really
necessary for my cases. Agree that the simplicity of pass, skip, or fail may
be best.

Jeff

  reply	other threads:[~2014-01-16 16:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-15 23:26 IGT conventions Jeff McGee
2014-01-15 23:55 ` Daniel Vetter
2014-01-16  9:27   ` Daniel Vetter
2014-01-16 16:43     ` Jeff McGee [this message]
2014-01-22 20:40       ` Jeff McGee
2014-01-22 20:53         ` Daniel Vetter

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=20140116164336.GD14542@jeffdesk \
    --to=jeff.mcgee@intel.com \
    --cc=daniel@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox