git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] t/t6035-merge-dir-to-symlink.sh: Remove TODO on passing test

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Jul 28, 2010, 07:31 UTC
Message-ID
<AANLkTi=VBsjHJxogMiD-R+wFj6W3q2JevdfrXHWqAdKE@mail.gmail.com>
In-Reply-To
<AANLkTikZO=RENz9HnHsiPoAv+fSz03p-zZPMepcX=KKK@mail.gmail.com>
On Tue, Jul 27, 2010 at 23:08, Elijah Newren <newren@gmail.com> wrote:
Show 14 quoted lines
> Hi,
>
> On Tue, Jul 27, 2010 at 10:54 AM, Ævar Arnfjörð Bjarmason
> <avarab@gmail.com> wrote:
>> Various merge-recursive cases were fixed in "merge-recursive: Fix D/F
>> conflicts" by Elijah Newren. Some tests were changed from
>> test_expect_failure to test_expect_success, but one fell through the
>> cracks.
>>
>> Change that test to use test_expect_success.
>
> Weird, I know I tested all of these individually and worked to make
> sure they all passed; I have no idea how I would have forgotten to
> update this particular test.

It still passes, but nothing flags unexpectedly passing TODO tests if you use "make test", but if you use "prove" they're spotted.

On pu:
    v t (pu) $ prove ./t6035-merge-dir-to-symlink.sh
    ./t6035-merge-dir-to-symlink.sh .. ok
    All tests successful.
    Test Summary Report
    -------------------
    ./t6035-merge-dir-to-symlink.sh (Wstat: 0 Tests: 16 Failed: 0)
      TODO passed:   8
    Files=1, Tests=16,  1 wallclock secs ( 0.03 usr  0.01 sys +  0.10
cusr  0.53 csys =  0.67 CPU)
    Result: PASS
With this patch:
    v t (merge-dir-to-symlink-todo-test) $ prove ./t6035-merge-dir-to-symlink.sh
    ./t6035-merge-dir-to-symlink.sh .. ok
    All tests successful.
    Files=1, Tests=16,  1 wallclock secs ( 0.03 usr  0.02 sys +  0.13
cusr  0.53 csys =  0.71 CPU)
    Result: PASS

The default harness / aggregate-resaults *could* be fixed to deal with it, but I haven't been motivated to do so since prove just works :)

> Anyway, thanks for cleaning up after me.  :-)
No problem.
Previous: Elijah Newren
Message 3 of 3 in “t/t6035-merge-dir-to-symlink.sh: Remove TODO on passing test”
  1. t/t6035-merge-dir-to-symlink.sh: Remove TODO on passing testÆvar Arnfjörð Bjarmason, Jul 27, 2010
  2. Elijah NewrenJul 27, 2010
  3. Ævar Arnfjörð BjarmasonJul 28, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.