diff options
author | George Kadianakis <desnacked@gmail.com> | 2011-10-07 15:44:58 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@gmail.com> | 2011-10-07 15:44:58 +0200 |
commit | 1174bb95ce79767cfaee4f50ce70f42e7eb01b2e (patch) | |
tree | 037529cb966f37a8f9d58ee974aec026f71a3cc7 /src/test/test_pt.c | |
parent | 3be9d76fa2e56a9715e8151d9b6802da5b38512a (diff) | |
download | tor-1174bb95ce79767cfaee4f50ce70f42e7eb01b2e.tar.gz tor-1174bb95ce79767cfaee4f50ce70f42e7eb01b2e.zip |
Revive our beautiful unit tests.
They broke when the PT_PROTO_INFANT proxy state was added.
Diffstat (limited to 'src/test/test_pt.c')
-rw-r--r-- | src/test/test_pt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/test_pt.c b/src/test/test_pt.c index 99fc5145e0..f97b21fa0d 100644 --- a/src/test/test_pt.c +++ b/src/test/test_pt.c @@ -13,11 +13,9 @@ static void reset_mp(managed_proxy_t *mp) { - mp->conf_state = PT_PROTO_INFANT; + mp->conf_state = PT_PROTO_LAUNCHED; SMARTLIST_FOREACH(mp->transports, transport_t *, t, transport_free(t)); smartlist_clear(mp->transports); - smartlist_free(mp->transports); - mp->transports = smartlist_create(); } static void @@ -94,7 +92,7 @@ test_pt_protocol(void) char line[200]; managed_proxy_t *mp = tor_malloc(sizeof(managed_proxy_t)); - mp->conf_state = PT_PROTO_INFANT; + mp->conf_state = PT_PROTO_LAUNCHED; mp->transports = smartlist_create(); /* various wrong protocol runs: */ |