Commit e7b9ac0b authored by Pekka Pessi's avatar Pekka Pessi

Added #include <stdlib.h> to test programs.

darcs-hash:20061128234417-65a35-eb12edbf534f59d4ec97592c509032cfc7895f26.gz
parent ce7c07c2
......@@ -37,11 +37,6 @@
#define MSG_PUB_T struct http_s
#define MSG_HDR_T union http_header_u
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include <assert.h>
#include <sofia-sip/su.h>
#include <sofia-sip/su_types.h>
......@@ -62,6 +57,12 @@
#include <sofia-sip/tstdef.h>
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include <stdlib.h>
#include <assert.h>
char const *name = "test_http";
static int tag_test(void);
......
......@@ -39,6 +39,7 @@
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include "sofia-sip/base64.h"
......
......@@ -38,6 +38,7 @@
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include <stdlib.h>
/* Avoid casting sip_t to msg_pub_t and sip_header_t to msg_header_t */
#define MSG_PUB_T struct sip_s
......@@ -915,8 +916,6 @@ static int test_encoding(void)
su_home_check(home);
su_home_zap(home);
home = su_home_new(sizeof *home); TEST_1(home);
msg = read_message(0,
"SIP/2.0 200 Ok\r\n"
"Via: SIP/2.0/UDP 135.180.130.133\r\n"
......@@ -1595,7 +1594,8 @@ static int sip_header_test(void)
su_home_t *home;
void const *x;
sip_via_t *v, *v0;
tagi_t const *tl, *tl0;
tagi_t const *tl;
tagi_t *tl0;
BEGIN();
......@@ -1730,6 +1730,8 @@ static int sip_header_test(void)
TEST(sip_add_tagis(msg, sip, &tl), 0);
TEST_P(tl, tl0 + 2);
tl_free(tl0);
TEST_P(sip_timestamp_make(home, "+1"), NULL);
TEST_P(sip_timestamp_make(home, "1.0e6 13.0"), NULL);
TEST_1(sip_timestamp_make(home, "1.0 .001"));
......
......@@ -38,6 +38,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include "sofia-sip/rbtree.h"
......
......@@ -37,6 +37,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sofia-sip/su_alloc.h>
#include <sofia-sip/su_strlst.h>
......
......@@ -36,6 +36,8 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sofia-sip/tstdef.h>
char const *name = "torture_su_bm";
......
......@@ -32,6 +32,9 @@
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
struct su_root_magic_s;
#define SU_ROOT_MAGIC_T struct su_root_magic_s
......@@ -49,7 +52,6 @@ int tstflags;
#define TSTFLAGS tstflags
#include <stdio.h>
#include <sofia-sip/tstdef.h>
char const *name = "torture_su_port";
......
......@@ -41,6 +41,7 @@ char const *name = "su_root_test";
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define TSTFLAGS rt->rt_flags
#include <sofia-sip/tstdef.h>
......
......@@ -42,6 +42,7 @@ char const *name = "torture_su_root_osx";
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define TSTFLAGS rt->rt_flags
#include <sofia-sip/tstdef.h>
......
......@@ -40,6 +40,7 @@
#include <string.h>
#include <stddef.h>
#include <limits.h>
#include <stdlib.h>
#include <sofia-sip/su_time.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment