Util-Linux package development
 help / color / mirror / Atom feed
From: Ruediger Meier <sweet_f_a@gmx.de>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org
Subject: Re: question about logger tests
Date: Fri, 3 Apr 2015 00:10:57 +0100	[thread overview]
Message-ID: <201504030110.58092.sweet_f_a@gmx.de> (raw)
In-Reply-To: <20150327141458.GN1749@ws.net.home>

On Friday 27 March 2015, Karel Zak wrote:
> On Thu, Mar 26, 2015 at 02:50:33PM +0100, Ruediger Meier wrote:
> > Our logger tests fail if it can't connect to /dev/log. I'd like to
> > fix that case for the test-suite but have some questions:
> >
> > 1. It was confusing for me to figure out the actual
> >    problem. Maybe --no-act and/or --stderr should imply
> >    that --socket-errors=auto turns error printing on?
>
> Hmm.. probably good idea.

I'll send a patch.

> > 2. Alternatively we could use --socket-errors=on for all tests.
> >
> > 3. Couldn't we fix --no-act to not need an open /dev/log at all?
>
> But then it will introduce another fragility, complexity and
> difference between test (--no-act) and non-test mode. I see for
> example "if(ctl->fd < 0)" in code. Now it really skips write() only.

You are right. If there would be a real-life use case for --no-act then 
not connecting /dev/log could be an optimization but I guess there is 
no such use case except our tests.

So how could we skip logger tests safely if /dev/log does not work?

cu,
Rudi



  reply	other threads:[~2015-04-02 23:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-26 13:50 question about logger tests Ruediger Meier
2015-03-27 14:14 ` Karel Zak
2015-04-02 23:10   ` Ruediger Meier [this message]
2015-04-07 10:09     ` Karel Zak
2015-04-09 18:22       ` Ruediger Meier

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=201504030110.58092.sweet_f_a@gmx.de \
    --to=sweet_f_a@gmx.de \
    --cc=kzak@redhat.com \
    --cc=util-linux@vger.kernel.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