You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by Doug Cutting <cu...@apache.org> on 2011/01/19 23:53:43 UTC

C tests failing?

I'm unable to get the trunk C tests to pass on Ubuntu 10.10.

When I run 'cd lang/c; ./configure; make check', it fails with:

make  check-TESTS
make[2]: Entering directory `/home/cutting/src/avro/trunk/lang/c/examples'
Successfully added Hicks, Dante id=1
Successfully added Graves, Randal id=2
Successfully added Loughran, Veronica id=3
Successfully added Bree, Caitlin id=4
Successfully added Silent, Bob id=5
Successfully added ???, Jay id=6

Now let's read all the records back out
Error printing person
FAIL: quickstop
==========================================================
1 of 1 test failed

Does this work for others?  Should I file a Jira issue?

Thanks,

Doug

Re: C tests failing?

Posted by Bruce Mitchener <br...@gmail.com>.
Sorry, I was away a bit ...

I get this on Mac OS X:

Successfully added Hicks, Dante id=1
Successfully added Graves, Randal id=2
Successfully added Loughran, Veronica id=3
Successfully added Bree, Caitlin id=4
Successfully added Silent, Bob id=5
Successfully added ???, Jay id=6

Now let's read all the records back out
1 |           Dante |           Hicks |  (555) 123-4567 | 32
2 |          Randal |          Graves |  (555) 123-5678 | 30
3 |        Veronica |        Loughran |  (555) 123-0987 | 28
4 |         Caitlin |            Bree |  (555) 123-2323 | 27
5 |             Bob |          Silent |  (555) 123-6422 | 29
6 |             Jay |             ??? |  (555) 123-9182 | 26


Use projection to print only the First name and phone numbers
          Dante |  (555) 123-4567 |
         Randal |  (555) 123-5678 |
       Veronica |  (555) 123-0987 |
        Caitlin |  (555) 123-2323 |
            Bob |  (555) 123-6422 |
            Jay |  (555) 123-9182 |
PASS: quickstop
==================
All 1 tests passed
==================


However ... I noticed that this wasn't running for me before because it runs
after the directory "examples" runs after "tests" ... but "tests" is failing
on Mac OS X with an error in test-valgrind which I'd previously didn't have
installed.

Since it isn't working for you, it seems reasonable to file a JIRA.  I'll
try it out shortly on an Ubuntu machine...

 - Bruce

On Thu, Jan 20, 2011 at 5:53 AM, Doug Cutting <cu...@apache.org> wrote:

> I'm unable to get the trunk C tests to pass on Ubuntu 10.10.
>
> When I run 'cd lang/c; ./configure; make check', it fails with:
>
> make  check-TESTS
> make[2]: Entering directory `/home/cutting/src/avro/trunk/lang/c/examples'
> Successfully added Hicks, Dante id=1
> Successfully added Graves, Randal id=2
> Successfully added Loughran, Veronica id=3
> Successfully added Bree, Caitlin id=4
> Successfully added Silent, Bob id=5
> Successfully added ???, Jay id=6
>
> Now let's read all the records back out
> Error printing person
> FAIL: quickstop
> ==========================================================
> 1 of 1 test failed
>
> Does this work for others?  Should I file a Jira issue?
>
> Thanks,
>
> Doug
>