Changeset 3e6764a


Ignore:
Timestamp:
2008-06-21T23:34:11Z (16 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
98de2cc
Parents:
edc767b
Message:

Added jabber_util unittests (buddy_add/_by_jid only ATM).

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber_util.c

    redc767b r3e6764a  
    525525                   matches), removing it is simple. (And the hash reference
    526526                   should be removed too!) */
    527                 if( bud->next == NULL && ( ( s == NULL || bud->resource == NULL ) || g_strcasecmp( bud->resource, s + 1 ) == 0 ) )
     527                if( bud->next == NULL &&
     528                    ( ( s == NULL && bud->resource == NULL ) ||
     529                      ( bud->resource && s && g_strcasecmp( bud->resource, s + 1 ) == 0 ) ) )
    528530                {
    529531                        g_hash_table_remove( jd->buddies, bud->bare_jid );
  • tests/Makefile

    redc767b r3e6764a  
    1313main_objs = account.o bitlbee.o conf.o crypting.o help.o ipc.o irc.o irc_commands.o log.o nick.o query.o root_commands.o set.o storage.o storage_xml.o storage_text.o user.o
    1414
    15 test_objs = check.o check_util.o check_nick.o check_md5.o check_arc.o check_irc.o check_help.o check_user.o check_crypting.o check_set.o check_jabber_sasl.o
     15test_objs = check.o check_util.o check_nick.o check_md5.o check_arc.o check_irc.o check_help.o check_user.o check_crypting.o check_set.o check_jabber_sasl.o check_jabber_util.o
    1616
    1717check: $(test_objs) $(addprefix ../, $(main_objs)) ../protocols/protocols.o ../lib/lib.o
  • tests/check.c

    redc767b r3e6764a  
    6969Suite *jabber_sasl_suite(void);
    7070
     71/* From check_jabber_sasl.c */
     72Suite *jabber_util_suite(void);
     73
    7174int main (int argc, char **argv)
    7275{
     
    115118        srunner_add_suite(sr, set_suite());
    116119        srunner_add_suite(sr, jabber_sasl_suite());
     120        srunner_add_suite(sr, jabber_util_suite());
    117121        if (no_fork)
    118122                srunner_set_fork_status(sr, CK_NOFORK);
  • tests/check_jabber_sasl.c

    redc767b r3e6764a  
    55#include <string.h>
    66#include <stdio.h>
    7 #include "arc.h"
    87
    98char *sasl_get_part( char *data, char *field );
Note: See TracChangeset for help on using the changeset viewer.