public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: DJ Delorie <dj@redhat.com>
To: Florian Weimer <fweimer@redhat.com>
Cc: libc-alpha@sourceware.org
Subject: Re: RFC V3 [1/2] test-in-container
Date: Thu, 28 Jun 2018 21:07:00 -0000	[thread overview]
Message-ID: <xnin62hb6v.fsf@greed.delorie.com> (raw)
In-Reply-To: <dad0a2f1-1e9e-061d-47a4-7fe70f3a4327@redhat.com> (message from Florian Weimer on Tue, 26 Jun 2018 15:04:18 +0200)


Florian Weimer <fweimer@redhat.com> writes:
> On 03/02/2018 12:05 AM, DJ Delorie wrote:
>> +  sfd = open (sname, O_RDONLY);
>> +  if (sfd < 0)
>> +      error (EXIT_UNSUPPORTED, errno,
>> +	     "unable to open %s for reading\n", sname);
>> +
>> +  if (stat (sname, &st) < 0)
>> +      error (EXIT_UNSUPPORTED, errno,
>> +	     "unable to stat %s\n", sname);
>
> Should this be fstat64?

Probably :-)

>> +  dfd = open (dname, O_WRONLY | O_TRUNC | O_CREAT, 0600);
>> +  if (dfd < 0)
>> +    error (EXIT_UNSUPPORTED, errno,
>> +	   "unable to open %s for writing\n", dname);
>
> EXIT_UNSUPPORTED does not appear to be correct here.  These should be 
> hard failures IMHO.

Are there good guidelines for dealing with failures in the test harness
itself, rather than errors resulting from the actual thing being tested?
Or do we lump them all as "fail" and let the developers sort it out?

  reply	other threads:[~2018-06-28 21:07 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-01 23:05 DJ Delorie
2018-06-25 15:01 ` Florian Weimer
2018-06-25 21:49   ` DJ Delorie
2018-06-26 11:43     ` Florian Weimer
2018-06-29  1:57       ` RFC V4 test-in-container DJ Delorie
2018-06-29 16:05         ` Joseph Myers
2018-06-29 16:16           ` DJ Delorie
2018-06-29 17:43             ` Joseph Myers
2018-07-06  5:20               ` RFC V5 test-in-container DJ Delorie
2018-07-06 12:36                 ` Carlos O'Donell
2018-06-25 15:17 ` RFC V3 [1/2] test-in-container Florian Weimer
2018-06-25 22:58   ` DJ Delorie
2018-06-25 23:09     ` Florian Weimer
2018-06-26  1:57       ` DJ Delorie
2018-06-26 12:28 ` Florian Weimer
2018-06-26 12:56 ` Florian Weimer
2018-06-26 12:57 ` Florian Weimer
2018-06-28 20:35   ` DJ Delorie
2018-06-26 13:00 ` Florian Weimer
2018-06-26 13:04 ` Florian Weimer
2018-06-28 21:07   ` DJ Delorie [this message]
2018-06-29  5:01     ` Florian Weimer

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=xnin62hb6v.fsf@greed.delorie.com \
    --to=dj@redhat.com \
    --cc=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).