~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-1.0/t/drizzle_con_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:
68
68
    drizzle_test_error("drizzle_con_options");
69
69
 
70
70
  drizzle_test("drizzle_con_set_tcp");
71
 
  drizzle_con_set_tcp(con, "127.0.0.1", 1);
 
71
  drizzle_con_set_tcp(con, "localhost", 1);
72
72
 
73
73
  drizzle_test("drizzle_con_host");
74
 
  if (strcmp(drizzle_con_host(con), "127.0.0.1"))
 
74
  if (strcmp(drizzle_con_host(con), "localhost"))
75
75
    drizzle_test_error("expected host not set");
76
76
 
77
77
  drizzle_test("drizzle_con_port");
91
91
    drizzle_test_error("drizzle_con_fd != -1 for unconnected connection");
92
92
 
93
93
  drizzle_test("drizzle_con_listen");
94
 
  drizzle_con_set_tcp(con, "127.0.0.1", DRIZZLE_TEST_PORT);
 
94
  drizzle_con_set_tcp(con, "localhost", DRIZZLE_TEST_PORT);
95
95
  ret = drizzle_con_listen(con);
96
96
  if (ret != DRIZZLE_RETURN_OK) 
97
97
    drizzle_test_error("drizzle_con_listen: %s", drizzle_error(drizzle));