~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-1.0/t/drizzle_column_st.c

  • Committer: Mark Atwood
  • Date: 2011-12-16 15:35:52 UTC
  • mfrom: (2472.1.1 drizzle-build)
  • Revision ID: me@mark.atwood.name-20111216153552-0zk0mmf1tt22p92n
mergeĀ lp:~brianaker/drizzle/libdrizzle-valgrind-test-warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
 
58
58
  drizzle_test("drizzle_create");
59
59
  if ((drizzle= drizzle_create(NULL)) == NULL)
 
60
  {
60
61
    drizzle_test_error("returned NULL");
 
62
  }
61
63
 
62
64
  drizzle_test("drizzle_con_create");
63
65
  if ((con= drizzle_con_create(drizzle, NULL)) == NULL)
 
66
  {
64
67
    drizzle_test_error("returned NULL");
 
68
  }
65
69
 
66
70
  drizzle_test("drizzle_result_create");
67
71
  if ((result= drizzle_result_create(con, NULL)) == NULL)
 
72
  {
68
73
    drizzle_test_error("returned NULL");
 
74
  }
69
75
 
70
76
  drizzle_test("drizzle_column_create buffer");
71
77
  if ((column= drizzle_column_create(result, &column_buffer)) == NULL)
 
78
  {
72
79
    drizzle_test_error("returned NULL");
 
80
  }
73
81
  drizzle_column_free(column);
74
82
 
75
83
  drizzle_test("drizzle_column_create");
76
84
  if ((column= drizzle_column_create(result, NULL)) == NULL)
 
85
  {
77
86
    drizzle_test_error("returned NULL");
 
87
  }
78
88
 
79
89
  drizzle_test("drizzle_column_set_catalog");
80
90
  drizzle_column_set_catalog(column, "simple test");
81
91
 
82
92
  drizzle_test("drizzle_column_catalog");
83
93
  if (strcmp(drizzle_column_catalog(column), "simple test"))
 
94
  {
84
95
    drizzle_test_error("does not match what was set");
 
96
  }
85
97
 
86
98
  drizzle_test("drizzle_column_free");
87
99
  drizzle_column_free(column);