~ubuntu-branches/ubuntu/breezy/ncbi-tools6/breezy

« back to all changes in this revision

Viewing changes to connect/test/test_ncbi_memory_connector.c

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2004-06-26 00:18:09 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040626001809-ma39ub7j6dbh8r3t
Tags: 6.1.20040616-1
* New upstream release.
* debian/blast2.docs: adjusted for new arrangement (a separate
  source-tree directory full of HTML files).
* debian/{control,lib*-dbg.install,rules}: switch to new-style -dbg
  packages containing just the stripped-out symbols.
* debian/{installman,ncbi-tools-bin.install,rules}: upstream has dropped
  f(asta)merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  $Id: test_ncbi_memory_connector.c,v 6.4 2002/12/04 16:58:49 lavr Exp $
 
2
 * ===========================================================================
 
3
 *
 
4
 *                            PUBLIC DOMAIN NOTICE
 
5
 *               National Center for Biotechnology Information
 
6
 *
 
7
 *  This software/database is a "United States Government Work" under the
 
8
 *  terms of the United States Copyright Act.  It was written as part of
 
9
 *  the author's official duties as a United States Government employee and
 
10
 *  thus cannot be copyrighted.  This software/database is freely available
 
11
 *  to the public for use. The National Library of Medicine and the U.S.
 
12
 *  Government have not placed any restriction on its use or reproduction.
 
13
 *
 
14
 *  Although all reasonable efforts have been taken to ensure the accuracy
 
15
 *  and reliability of the software and data, the NLM and the U.S.
 
16
 *  Government do not and cannot warrant the performance or results that
 
17
 *  may be obtained by using this software or data. The NLM and the U.S.
 
18
 *  Government disclaim all warranties, express or implied, including
 
19
 *  warranties of performance, merchantability or fitness for any particular
 
20
 *  purpose.
 
21
 *
 
22
 *  Please cite the author in any work or product based on this material.
 
23
 *
 
24
 * ===========================================================================
 
25
 *
 
26
 * Author:  Anton Lavrentiev
 
27
 *
 
28
 * File Description:
 
29
 *   Standard test for the MEMORY CONNECTOR
 
30
 *
 
31
 */
 
32
 
 
33
#include "ncbi_conntest.h"
 
34
#include <connect/ncbi_memory_connector.h>
 
35
#include <connect/ncbi_util.h>
 
36
/* This header must go last */
 
37
#include "test_assert.h"
 
38
 
 
39
 
 
40
int main(void)
 
41
{
 
42
    static STimeout timeout/* = 0 */;
 
43
    CONNECTOR       connector;
 
44
    FILE*           data_file;
 
45
 
 
46
    /* Log and data-log streams */
 
47
    CORE_SetLOGFILE(stderr, 0/*false*/);
 
48
    data_file = fopen("test_ncbi_memory_connector.log", "wb");
 
49
    assert(data_file);
 
50
 
 
51
     /* Run the tests */
 
52
    connector = MEMORY_CreateConnector(0);
 
53
    CONN_TestConnector(connector, &timeout, data_file, fTC_SingleBounceCheck);
 
54
 
 
55
    connector = MEMORY_CreateConnector(0);
 
56
    CONN_TestConnector(connector, &timeout, data_file, fTC_Everything);
 
57
 
 
58
    /* Cleanup and Exit */
 
59
    fclose(data_file);
 
60
    CORE_SetLOG(0);
 
61
    return 0;
 
62
}
 
63
 
 
64
 
 
65
/*
 
66
 * --------------------------------------------------------------------------
 
67
 * $Log: test_ncbi_memory_connector.c,v $
 
68
 * Revision 6.4  2002/12/04 16:58:49  lavr
 
69
 * Move change log to end
 
70
 *
 
71
 * Revision 6.3  2002/03/22 19:47:31  lavr
 
72
 * Test_assert.h made last among the include files
 
73
 *
 
74
 * Revision 6.2  2002/02/20 20:53:48  lavr
 
75
 * Use xconntest to perform standard tests
 
76
 *
 
77
 * Revision 6.1  2002/02/20 19:14:40  lavr
 
78
 * Initial revision
 
79
 *
 
80
 * ==========================================================================
 
81
 */