Trouble getting started

326 views
Skip to first unread message

hansem...@gmail.com

unread,
May 2, 2013, 7:47:22 AM5/2/13
to cppu...@googlegroups.com
Hi

Well, as topic says I am having trouble getting CppUTest set up and running.

I've DL the source from github, http://cpputest.github.io/, and have as the Readme file prescribes typed make in the folder's root directory.

The compilation and linking seems to be successful, but as the "Running CppUTest_tests" point is reached, the program simply seems to be stuck. It does not freeze or anything, but simply seems to be keep running these tests... I have tried different versions, but get the same outcome on all of them.
The library libCppUTests.a seems to get built and so does the CppUTest_tests.exe

Tried to link in the library and #include "CppUTest/CommandLineTestRunner.h", this compiles without hitches, but does not give any output on the console.

I expect that it is me who has failed to do something basic, but simply cannot seem to find the issue.

I am using Eclipse Juno and Cygwin on Windows XP and am kindda stuck to this platform.

Some help / suggestions would be very very much appreciated :)

Regards
Hans

Bas Vodde

unread,
May 2, 2013, 9:41:03 PM5/2/13
to cppu...@googlegroups.com

Hi Hans,

That is very strange indeed. It didn't even run CppUTests own tests? Very odd.

Did you try "current version"? That should work, at least, our CI system on cygwin is passing :)

We've had some cygwin problems in the past, but hope that most are sort-of fixed with the switch to autotools.

Bas
> --
> You received this message because you are subscribed to the Google Groups "cpputest" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cpputest+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

hansem...@gmail.com

unread,
May 3, 2013, 2:34:27 AM5/3/13
to cppu...@googlegroups.com
I've tried the 3.3 version and 2.3 Make only reaches and outputs "Running CppUTest_tests" and seems to be stuck in some loop at that point.

I tried the 3.3 version on my Ubuntu 12.04 system at home, where the makefile ran successfully within some seconds.

Bas Vodde

unread,
May 3, 2013, 2:47:37 AM5/3/13
to cppu...@googlegroups.com

Hiya Hans,

Yes, but could you try the latest one (the soon to be 3.4):
https://github.com/cpputest/cpputest/zipball/master

(or get it via a git clone)

Bas

hansem...@gmail.com

unread,
May 3, 2013, 6:17:27 AM5/3/13
to cppu...@googlegroups.com
Hi Bas

Thanks for the quick replies, btw. :)

downloaded the .zip you linked to and ran the configure in cygwin before makefile. The make seems to succeed, although not running the tests which it failed before. The makefile is quite different from the one in 3.3, but I guess that is intended?

However, still when I try to compile a simple test using the library the .exe behaves as usual, not producing any output but not just shutting down either.


Regards
Hans

Bas Vodde

unread,
May 3, 2013, 7:49:43 AM5/3/13
to cppu...@googlegroups.com

Can you do "make check" on the CppUTest Makefile. That should run the CppUTest tests themselves.

If it still behaves odd, could you try "CppUTestTests -v" and see what output there is (should be at least *some*)

Bas

Dan S

unread,
May 15, 2013, 7:20:33 PM5/15/13
to cppu...@googlegroups.com
Hans,

Any luck resolving this?

I have a similar setup to you, Eclipse Juno and Cygwin on Windows 7, and I am seeing the exact same behaviour. In my case, however, cpputest build & test as well as unit tests for my project were all working properly until yesterday.  This is when I reran the Cygwin setup executable to install an unrelated package.  Cygwin likes to update everything whenever you run the setup. I suspect that a recently updated cygwin dependency has changed ... trouble is I am not sure where to start looking.

Please let me know if you make any headway on this.

Thanks,

Dan

Dan S

unread,
May 15, 2013, 7:44:45 PM5/15/13
to cppu...@googlegroups.com
Ok...  it seems like this is an issue with the latest 1.7.18-1 cygwin dll.  Using the cygwin installer I downgraded to 1.7.17-1 and everything works as it use to.

Here's the changelog:

http://cygwin.com/ml/cygwin-announce/2013-04/msg00025.html

Bas Vodde

unread,
May 15, 2013, 8:13:04 PM5/15/13
to cppu...@googlegroups.com

Hi Dan S,

You mean on 1.7.18-1 (the latest) CppUTest isn't working now? If so, I'll need to try to debug that and find some workaround.

Thanks!

Bas

Dan S

unread,
May 15, 2013, 8:25:02 PM5/15/13
to cppu...@googlegroups.com
Hi Bas,

That's correct.  Under 1.7.18-1 the projects seem build successfully without errors but the executables just hang.

Let me know if you need any other info, I'm happy to help.

Thanks,

Dan

Bas Vodde

unread,
May 15, 2013, 8:27:00 PM5/15/13
to cppu...@googlegroups.com

Hi Dan,

I guess that I'll need to install cygwin somewhere and try it out. But in the mean time, what might be useful:

- Could you send me the output of "make check"
- Could you run the test executable with -v and see if there is any output?
- Could you run the executable in gdb and then "ctrl-c" and then "bt" and send the stack trace of where it would be stuck?

Thanks!

Bas

Ryan Hartlage

unread,
May 16, 2013, 3:26:43 PM5/16/13
to cppu...@googlegroups.com
Someone on my team saw this issue, but it didn't seem to be isolated to CppUTest.  He was unable to run anything compiled by gcc.  Before digging too deep into CppUTest, I'd verify that you can compile and run a simple hello world.

Bas Vodde

unread,
May 17, 2013, 3:21:28 AM5/17/13
to cppu...@googlegroups.com

Hi,

Excellent point.

Dan: Could you check that?

Thanks,

Bas
Message has been deleted

hansem...@gmail.com

unread,
May 27, 2013, 8:13:50 AM5/27/13
to cppu...@googlegroups.com
Bas and Dan

Been using CppUTest on Linux instead and since it was work related, I did not really get around to debugging the issue. Sorry.

I've made some tests today with CppUTest 3.4 on a WinXP installation using Cygin 1.7.18 and on a Win7 machine using Cygwin 1.7.8.

Both machines are able to do the configure and make steps of the readme file, but using make all on the XP machine the terminal seems to caught in a "spinlock", constantly working on something but not getting anywhere from the point after having checked the .exe file. displaying

make  check-TESTS
make[1]: Entering directory `/cygdrive/c/cppu3.4ok/
cpputest-3.4'

The Win7 machine runs with no glitch through it all.

The XP machine does generate a library file, but I can't get any output when trying to use it. The .exe files just hangs as Dan says.

Bas Vodde

unread,
May 29, 2013, 7:34:07 PM5/29/13
to cppu...@googlegroups.com

Strange.

Let me know if you discover more on why and especially if it works for other executables build.

Bas
Reply all
Reply to author
Forward
0 new messages