~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2011-12-12 21:56:34 UTC
  • mto: This revision was merged to the branch mainline in revision 2470.
  • Revision ID: brian@tangent.org-20111212215634-1ecdbeoitkmie1rw
Move from using 127.0.0.1, to localhost. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
  /* Create a listening connection to verify that event_watch_fn gets called. */
159
159
  listen_con= drizzle_con_create(drizzle, NULL);
160
160
  assert(listen_con != NULL);
161
 
  drizzle_con_set_tcp(listen_con, "127.0.0.1", DRIZZLE_TEST_PORT);
 
161
  drizzle_con_set_tcp(listen_con, "localhost", DRIZZLE_TEST_PORT);
162
162
  ret= drizzle_con_listen(listen_con);
163
163
  assert(ret == DRIZZLE_RETURN_OK);  
164
164
  if (_event_watch_read_bits == 0)
167
167
 
168
168
  /* Attempt a non-blocking connection. */
169
169
  drizzle_add_options(drizzle, DRIZZLE_NON_BLOCKING);
170
 
  con= drizzle_con_add_tcp(drizzle, NULL, "127.0.0.1", DRIZZLE_TEST_PORT, "user", "pw", "db",
 
170
  con= drizzle_con_add_tcp(drizzle, NULL, "localhost", DRIZZLE_TEST_PORT, "user", "pw", "db",
171
171
                           DRIZZLE_CON_NONE);
172
172
  assert(con != NULL);
173
173
  ret= drizzle_con_connect(con);