IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 6, 2006, 12:31:31 PM (20 years ago)
Author:
drobbin
Message:

Added comment parsing for metadata in parseLine in psMetadataConfig.c. Added ok_strn to pstap.h. Updated # of planned tests in psArguments. Updated testing for psMetadataConfig.

File:
1 edited

Legend:

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

    r9747 r9868  
    2525ok(strcmp(VALUE, EXPECT) == 0, COMMENT, ## __VA_ARGS__);
    2626
     27# define ok_strn(VALUE,EXPECT,N,COMMENT, ...)\
     28ok(strncmp(VALUE, EXPECT, N) == 0, COMMENT, ## __VA_ARGS__);
     29
    2730#elif __STDC_VERSION__ >= 199901L /* __GNUC__ */
    2831
     
    3841ok(strcmp(VALUE, EXPECT) == 0, __VA_ARGS__);
    3942
     43# define ok_strn(VALUE,EXPECT,N, ...)\
     44ok(strncmp(VALUE, EXPECT, N) == 0, __VA_ARGS__);
     45
    4046#else /* __STDC_VERSION__ */
    4147# error "Needs gcc or C99 compiler for variadic macros."
Note: See TracChangeset for help on using the changeset viewer.