Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

always run gtest

  • Loading branch information...
commit 9893e4c710d747e747c4b3f954eec237efcbd796 1 parent 00d13c7
Randy Rizun authored
Showing with 14 additions and 13 deletions.
  1. +14 −13 main.cpp
View
27 main.cpp
@@ -209,24 +209,25 @@ main(int argc, char **argv) {
print_auto_flags(&flags);
- auto_mysql handle(OdbcNewConnection("OWConfig"));
-// auto_mysql_stmt(handle.get(), "select * from OWConfig where ComponentURI=?", "foo").execute(print_rows());
-
- WozConfig config;
- OWReadConfig("OWConfig", &config, "foo");
-// config.PrintDebugString();
-// printf("cli_filebase is %s\n", config.cli_filebase().c_str());
-
- WozStatus status;
- status.set_bytes_sent(123);
- status.set_bytes_received(456);
- OWWriteStatus("OWZzzStatus", &status, "bar");
+// auto_mysql handle(OdbcNewConnection("OWConfig"));
+//// auto_mysql_stmt(handle.get(), "select * from OWConfig where ComponentURI=?", "foo").execute(print_rows());
+//
+// WozConfig config;
+// OWReadConfig("OWConfig", &config, "foo");
+//// config.PrintDebugString();
+//// printf("cli_filebase is %s\n", config.cli_filebase().c_str());
+//
+// WozStatus status;
+// status.set_bytes_sent(123);
+// status.set_bytes_received(456);
+// OWWriteStatus("OWZzzStatus", &status, "bar");
// printf("the count is %d\n", auto_mysql_stmt(handle.get(), "select * from OWConfig").execute(count_rows()).result);
boost::shared_ptr<event_base> base(event_base_new(), event_base_free);
- if (run_unit_tests) {
+// if (run_unit_tests)
+ {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
Please sign in to comment.
Something went wrong with that request. Please try again.