IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 21, 2006, 10:32:47 AM (20 years ago)
Author:
magnier
Message:

better definition for note

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/pstap/src/pstap.h

    r10818 r10822  
    1515
    1616           // write a comment which is counted as a test (and swallowed by prove)
    17            # define note(A, ...) _gen_result(1, __func__, __FILE__, __LINE__, A, ## __VA_ARGS__);
     17           # define note(A, ...){ \
     18           fprintf(stdout, A, ## __VA_ARGS__); \
     19           fprintf(stdout, "\n[%s:%d in %s]\n", __FILE__, __LINE__, __func__); }
     20
     21       // write a comment which is counted as a test (and swallowed by prove)
     22       # define noted(A, ...) _gen_result(1, __func__, __FILE__, __LINE__, A, ## __VA_ARGS__);
    1823
    1924// use to test the value of a float
    2025# define ok_float(VALUE,EXPECT,COMMENT, ...)\
    2126ok((fabsf((VALUE)-(EXPECT)) < FLT_EPSILON), COMMENT, ## __VA_ARGS__);
    22 
    23 // write a comment which is counted as a test (and swallowed by prove)
    24 # define note(A, ...) _gen_result(1, __func__, __FILE__, __LINE__, A, ## __VA_ARGS__);
    2527
    2628// use to test the value of a double
     
    7375
    7476// write a comment which is counted as a test (and swallowed by prove)
    75 # define note(A, ...) _gen_result(1, __func__, __FILE__, __LINE__, A, ...);
     77// write a comment which is counted as a test (and swallowed by prove)
     78# define note(A, ...){ \
     79    fprintf(stdout, A, ...); \
     80    fprintf(stdout, "\n[%s:%d in %s]\n", __FILE__, __LINE__, __func__); }
    7681
    7782// use to test the value of a float
Note: See TracChangeset for help on using the changeset viewer.