~stewart/galera/bug907623

« back to all changes in this revision

Viewing changes to gcomm/test/check_pc.cpp

  • Committer: Alex Yurchenko
  • Date: 2011-12-28 02:42:21 UTC
  • mfrom: (87.1.10 1.x)
  • Revision ID: ayurchen@void-20111228024221-yv5wzy8c9a23rymq
References lp:884566 - synced with SVN r2628

Show diffs side-by-side

added added

removed removed

Lines of Context:
1698
1698
}
1699
1699
END_TEST
1700
1700
 
 
1701
// test for forced teardown
 
1702
START_TEST(test_trac_620)
 
1703
{
 
1704
    gu::Config conf;
 
1705
    auto_ptr<Protonet> net(Protonet::create(conf));
 
1706
    Transport* tp(Transport::create(*net, "pc://?"
 
1707
                                    "evs.info_log_mask=0xff&"
 
1708
                                    "gmcast.listen_addr=tcp://127.0.0.1:10001&"
 
1709
                                    "gmcast.group=pc&"
 
1710
                                    "gmcast.time_wait=PT0.5S&"
 
1711
                                    "node.name=n1"));
 
1712
    class D : public gcomm::Toplay
 
1713
    {
 
1714
    public:
 
1715
        D(gu::Config& conf) : gcomm::Toplay(conf) { }
 
1716
        void handle_up(const void* id, const gu::Datagram& dg,
 
1717
                       const gcomm::ProtoUpMeta& um)
 
1718
        {
 
1719
 
 
1720
        }
 
1721
    };
 
1722
    D d(conf);
 
1723
    gcomm::connect(tp, &d);
 
1724
    tp->connect();
 
1725
    tp->close(true);
 
1726
    gcomm::disconnect(tp, &d);
 
1727
    delete tp;
 
1728
}
 
1729
END_TEST
 
1730
 
1701
1731
 
1702
1732
Suite* pc_suite()
1703
1733
{
1784
1814
    tcase_add_test(tc, test_trac_599);
1785
1815
    suite_add_tcase(s, tc);
1786
1816
 
 
1817
    tc = tcase_create("test_trac_620");
 
1818
    tcase_add_test(tc, test_trac_620);
 
1819
    suite_add_tcase(s, tc);
1787
1820
 
1788
1821
    return s;
1789
1822
}