~yeban/libmemcached/todo-hosts.c-2

« back to all changes in this revision

Viewing changes to libtest/test.c

  • Committer: Brian Aker
  • Date: 2011-03-17 21:45:08 UTC
  • Revision ID: brian@tangent.org-20110317214508-ogufz6pusakvcch0
Merge in updates to make sure exit/return is done properly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
  if (sasl_client_init(NULL) != SASL_OK)
157
157
  {
158
158
     fprintf(stderr, "Failed to initialize sasl library!\n");
159
 
     return 1;
 
159
     return EXIT_FAILURE;
160
160
  }
161
161
#endif
162
162
 
357
357
    if (error != TEST_SUCCESS)
358
358
    {
359
359
      fprintf(stderr, "Failure during shutdown.\n");
360
 
      stats.failed++; // We do this to make our exit code return 1
 
360
      stats.failed++; // We do this to make our exit code return EXIT_FAILURE
361
361
    }
362
362
  }
363
363