~linuxjedi/libdrizzle/5.1-tests

« back to all changes in this revision

Viewing changes to tests/unit/version.c

  • Committer: Andrew Hutchings
  • Date: 2012-12-19 12:44:26 UTC
  • mfrom: (50.1.2 libdrizzle-5.1)
  • Revision ID: andrew@linuxjedi.co.uk-20121219124426-8fk29z8u5p24inly
Merge in C++ compiling

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#include "config.h"
39
39
 
40
40
#include <libdrizzle-5.0/drizzle_client.h>
 
41
 
41
42
#include <stdio.h>
42
43
#include <stdlib.h>
43
44
 
45
46
{
46
47
  (void) argc;
47
48
  (void) argv;
48
 
  const char* version;
49
 
 
50
 
  version= drizzle_version();
51
 
  printf("%s\n", version);
 
49
 
 
50
  // @todo Don't use assert
 
51
  assert(drizzle_version());
 
52
  assert(strtol(LIBDRIZZLE_VERSION_STRING, (char **) NULL, 10));
 
53
  assert(LIBDRIZZLE_VERSION_HEX > 0);
 
54
 
52
55
  return EXIT_SUCCESS;
53
56
}