all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: 宋文武 <iyzsong@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add ninja.
Date: Sat, 10 Jan 2015 14:46:54 +0100	[thread overview]
Message-ID: <877fwukasx.fsf@gnu.org> (raw)
In-Reply-To: <87387i99n2.fsf@gmail.com> ("宋文武"'s message of "Sat, 10 Jan 2015 19:07:29 +0800")

宋文武 <iyzsong@gmail.com> skribis:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> 宋文武 <iyzsong@gmail.com> skribis:
>>
>>> * gnu/packages/ninja.scm: New file.
>>> * gnu-system.am (GNU_SYSTEM_MODULES): Add it.
>>
>> [...]
>>
>>> +          'check
>>> +          (lambda _
>>> +            (and (zero? (system "./configure.py"))
>>> +                 (zero? (system "./ninja ninja_test"))
>>> +                 ;; SubprocessTest.InterruptChild fail when using 'system*'.
>>> +                 ;; SubprocessTest.SetWithLots was skipped.
>>> +                 ;; XXX: Raise [ulimit -n] well above 1025 to make this test go.
>>
>> Does it mean that the test is currently failing?
> Yes, SetWithLots fail with the 'Raise ...' line.

Oh, I see.  Then can you make it clearer in the comment:

  ;; SubprocessTest.SetWithLots fails with:
  ;;
  ;;   Raise [ulimit -n] well above 1025 to make this test go.
  ;;
  ;; Skip it.

>>> +                 (zero? (system (string-append
>>> +                                 "./ninja_test "
>>> +                                 "--gtest_filter="
>>> +                                 "-SubprocessTest.SetWithLots")))))
>>
>> Please use ‘system*’ (with separate arguments) rather than ‘system’.
>> The latter runs “/bin/sh -c ...” whereas the former runs the program
>> directly.
> Use 'system*' to run "./ninja_test" will cause InterruptChild to fail :(
> (as I mentioned in the comment)

Ah right, that’s weird, but could you mention in the comment (1) how it
fails, and (2) that because of this, we use ‘system’ instead of
‘system*’?

It’s important to explain both the problem and the solution/consequence,
otherwise it can be hard by reading the comment to understand if we’re
talking about an unfixed issue, a fixed issue, or a fix.

OK to push with these changes.

Thanks,
Ludo’.

  reply	other threads:[~2015-01-10 13:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-09 13:40 [PATCH] gnu: Add ninja 宋文武
2015-01-09 14:34 ` Ludovic Courtès
2015-01-10 11:07   ` 宋文武
2015-01-10 13:46     ` Ludovic Courtès [this message]
2015-01-11  3:07       ` 宋文武
2015-01-11 10:53         ` Ludovic Courtès
2015-01-11 11:28           ` 宋文武
2015-01-12  9:53             ` Ludovic Courtès
2015-01-14  0:31   ` Mark H Weaver
2015-01-15 11:15     ` 宋文武

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=877fwukasx.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=iyzsong@gmail.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

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.