test-helper.h File Reference

#include <sys/time.h>

Include dependency graph for test-helper.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define HT_MEASURE(_t_, _code_)
 Copyright (C) 2007 Luke Lu (Zvents, Inc.
#define HT_CHECK(e)   ((void)((e) ? 0 : HT_CHECK_FAIL(#e)))
#define HT_CHECK_FAIL(e)

Functions

static double ht_time_d ()


Define Documentation

#define HT_CHECK (  )     ((void)((e) ? 0 : HT_CHECK_FAIL(#e)))

Definition at line 38 of file test-helper.h.

#define HT_CHECK_FAIL (  ) 

Value:

((void)printf("%s:%u: %s: bad assertion: `%s'\n", \
                  __FILE__, __LINE__, __FUNCTION__, e), abort(), 0)

Definition at line 41 of file test-helper.h.

#define HT_MEASURE ( _t_,
_code_   ) 

Value:

do { \
  double t0 = ht_time_d(); _code_; _t_ = ht_time_d() - t0; \
} while (0)
Copyright (C) 2007 Luke Lu (Zvents, Inc.

)

This file is part of Hypertable.

Hypertable is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.

Hypertable is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Hypertable. If not, see <http://www.gnu.org/licenses/>

Definition at line 25 of file test-helper.h.


Function Documentation

static double ht_time_d (  )  [inline, static]

Definition at line 30 of file test-helper.h.


Generated on Sat Aug 15 08:56:11 2009 for hypertable by  doxygen 1.5.9