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

3 messages from 2010-07-27 to 2010-07-28. Participants: Ævar Arnfjörð Bjarmason, Elijah Newren.
Thread: https://gitlist.dev/t/24539

## Ævar Arnfjörð Bjarmason, 2010-07-27 16:54

Subject: [PATCH] t/t6035-merge-dir-to-symlink.sh: Remove TODO on passing test
Message-ID: <1280249698-11001-1-git-send-email-avarab@gmail.com>
URL: https://gitlist.dev/e/1280249698-11001-1-git-send-email-avarab%40gmail.com

```
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.
---
 t/t6035-merge-dir-to-symlink.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/t/t6035-merge-dir-to-symlink.sh b/t/t6035-merge-dir-to-symlink.sh
index 272bab5..dc09513 100755
--- a/t/t6035-merge-dir-to-symlink.sh
+++ b/t/t6035-merge-dir-to-symlink.sh
@@ -72,7 +72,7 @@ test_expect_success 'Handle F/D conflict, do not lose a/b-2/c/d in merge (resolv
 	test -f a/b-2/c/d
 '
 
-test_expect_failure 'Handle F/D conflict, do not lose a/b-2/c/d in merge (recursive)' '
+test_expect_success 'Handle F/D conflict, do not lose a/b-2/c/d in merge (recursive)' '
 	git reset --hard &&
 	git checkout master^0 &&
 	git merge -s recursive baseline^0 &&
-- 
1.7.1

```

## Elijah Newren, 2010-07-27 23:08

Subject: Re: [PATCH] t/t6035-merge-dir-to-symlink.sh: Remove TODO on passing test
Message-ID: <AANLkTikZO=RENz9HnHsiPoAv+fSz03p-zZPMepcX=KKK@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTikZO%3DRENz9HnHsiPoAv%2BfSz03p-zZPMepcX%3DKKK%40mail.gmail.com
In-Reply-To: <1280249698-11001-1-git-send-email-avarab@gmail.com>

```
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.

Anyway, thanks for cleaning up after me.  :-)

```

## Ævar Arnfjörð Bjarmason, 2010-07-28 07:31

Subject: Re: [PATCH] t/t6035-merge-dir-to-symlink.sh: Remove TODO on passing test
Message-ID: <AANLkTi=VBsjHJxogMiD-R+wFj6W3q2JevdfrXHWqAdKE@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTi%3DVBsjHJxogMiD-R%2BwFj6W3q2JevdfrXHWqAdKE%40mail.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:
> 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.

```
