Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: MODIFIED: c-unit ...

autounit
Discussion topic

Back to topic list

CVS update: MODIFIED: c-unit ...

Reply

Author sjanes71
Full name Simon Janes
Date 2002-04-26 08:00:59 PDT
Message User: sjanes71
  Date: 02/04/26 08:00:59

  Modified: autounit/c-unit autounit.h test.c
  Log:
  Configurable PASS/FAIL markers in autounit.h. Fail marker changed
  to "F" to be more similar to JUnit command line output.
  
  Revision Changes Path
  1.2 +4 -0 autounit/autounit/c-​unit/autounit.h
  
  http://autounit.tigr​is.org/source/browse​/autounit/autounit/c​-unit/autounit.h.dif​f?r1=1.1&r2=1.2
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: autounit.h
  ====================​====================​====================​=======
  RCS file: /usr/local/tigris/da​ta/helm/cvs/reposito​ry/autounit/autounit​/c-unit/autounit.h,v​
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- autounit.h 2002/04/25 13:48:05 1.1
  +++ autounit.h 2002/04/26 15:00:59 1.2
  @@ -23,6 +23,10 @@
   #include <stdarg.h>
   #include <glib.h>
   
  +/* #define AUTOUNIT_TEST_FAIL_MARKER "!" */
  +#define AUTOUNIT_TEST_PASS_MARKER "."
  +#define AUTOUNIT_TEST_FAIL_MARKER "F"
  +
   struct autounit_test_t_struct;
   
   typedef gint (*autounit_test_fp_t)(struct autounit_test_t_struct *t);
  
  
  
  1.2 +2 -2 autounit/autounit/c-unit/test.c
  
  http://autounit.tigr​is.org/source/browse​/autounit/autounit/c​-unit/test.c.diff?r1​=1.1&r2=1.2
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: test.c
  ====================​====================​====================​=======
  RCS file: /usr/local/tigris/da​ta/helm/cvs/reposito​ry/autounit/autounit​/c-unit/test.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- test.c 2002/04/25 13:48:05 1.1
  +++ test.c 2002/04/26 15:00:59 1.2
  @@ -363,10 +363,10 @@
     }
     
     if (t->failed_assertions > 0) {
  - g_print(_("!"));
  + g_print(_(AUTOUNIT_T​EST_FAIL_MARKER));
     } else {
       if ((*(status->round) % status->modulo) == 0) {
  - g_print(_("."));
  + g_print(_(AUTOUNIT_T​EST_PASS_MARKER));
       }
     }
   }
  
  
  

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@auto​unit.tigris.org
For additional commands, e-mail: cvs-help at autounit dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: MODIFIED: c-unit ... sjanes71 Simon Janes 2002-04-26 08:00:59 PDT
Messages per page: