Menu

output of example/simple and example/money

Help
dgoldsmith
2007-09-05
2013-04-22
  • dgoldsmith

    dgoldsmith - 2007-09-05

    Hi!  Sorry if this is in the doc somewhere - if it is, I couldn't find it.  Running examples/simple is supposed to run four tests, all of which fail (no errors)?  Running examples/money is supposed to run four tests, all of which pass?  Just making sure I have my install running correctly.  Thanks!

    DG

     
    • dgoldsmith

      dgoldsmith - 2007-09-06

      Follow-up: assuming at the very least the money example is working as it should, I've begun using it (actually, using it is incidental - what I'm really doing is leveraging the Visual Studio Project provided with it) to develop my own tests.  Out of curiosity, in MoneyTest.cpp, I commented out the #include <cppunit/config/SourcePrefix.h> and the thing still builds and runs!  What's in there that someone thought was necessary but apparently isn't?

      DG

       
    • HRD

      HRD - 2007-10-10

      See cppunit-1.12.0/doc/html/_source_prefix_8h.html
      SourcePrefix.h will only be included by some implementation files like CompilerOutputter.cpp, ...
      config-auto.h will be created by ./configure.
      Only include what your code needs.
      You may run your preprocessor alone to verify that nothing in there is used in your code.
      > cpp -dI MoneyTest.cpp | gvim -

      simple:
      Failures !!!
      Run: 4   Failure total: 4   Failures: 4   Errors: 0

      money:
      OK (4)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.