~linuxjedi/libdrizzle/5.1-optimize

« back to all changes in this revision

Viewing changes to tests/unit/version.c

  • Committer: Brian Aker
  • Date: 2012-12-29 10:49:09 UTC
  • mto: (68.1.1 5.1-trunk)
  • mto: This revision was merged to the branch mainline in revision 69.
  • Revision ID: brian@tangent.org-20121229104909-jvfy9qkrx0tdyrlj
Add YATL lite and fixes known bug where bug report was not being outputed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 *
36
36
 */
37
37
 
 
38
#include <yatl/lite.h>
 
39
 
38
40
#include <libdrizzle-5.1/libdrizzle.h>
39
41
 
40
42
#include <stdio.h>
41
43
#include <stdlib.h>
42
 
#include <assert.h>
43
44
 
44
45
int main(void)
45
46
{
46
 
  // @todo Don't use assert
47
 
  assert(drizzle_version());
48
 
  assert(strtol(LIBDRIZZLE_VERSION_STRING, (char **) NULL, 10));
49
 
  assert(LIBDRIZZLE_VERSION_HEX > 0);
 
47
  ASSERT_TRUE(drizzle_version());
 
48
  ASSERT_TRUE(strtol(LIBDRIZZLE_VERSION_STRING, (char **) NULL, 10));
 
49
  ASSERT_TRUE(LIBDRIZZLE_VERSION_HEX > 0);
 
50
  ASSERT_TRUE(drizzle_bugreport());
50
51
 
51
52
  return EXIT_SUCCESS;
52
53
}