diff options
| author | Alan Conway <aconway@apache.org> | 2007-11-07 23:34:34 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-11-07 23:34:34 +0000 |
| commit | 9df2509ae1f7cc49f0f08baf2960b9f3ea3454b1 (patch) | |
| tree | bff784ffc984cb9b6ccb06808c4268a047fba799 /cpp/src/tests/logging.cpp | |
| parent | 985737b06a78b22b69be55493d1af04a5e2b16a0 (diff) | |
| download | qpid-python-9df2509ae1f7cc49f0f08baf2960b9f3ea3454b1.tar.gz | |
Change options --log.foo to --log-foo for consistency.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@592956 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/logging.cpp')
| -rw-r--r-- | cpp/src/tests/logging.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/cpp/src/tests/logging.cpp b/cpp/src/tests/logging.cpp index a4e131ec57..72262ab3bc 100644 --- a/cpp/src/tests/logging.cpp +++ b/cpp/src/tests/logging.cpp @@ -264,15 +264,15 @@ Statement statement( BOOST_AUTO_TEST_CASE(testOptionsParse) { char* argv[]={ 0, - "--log.enable", "error+:foo", - "--log.enable", "debug:bar", - "--log.enable", "info", - "--log.output", "x", - "--log.output", "y", - "--log.level", "yes", - "--log.source", "1", - "--log.thread", "true", - "--log.function", "YES" + "--log-enable", "error+:foo", + "--log-enable", "debug:bar", + "--log-enable", "info", + "--log-output", "x", + "--log-output", "y", + "--log-level", "yes", + "--log-source", "1", + "--log-thread", "true", + "--log-function", "YES" }; qpid::log::Options opts; opts.parse(ARGC(argv), argv); @@ -299,9 +299,9 @@ BOOST_AUTO_TEST_CASE(testOptionsDefault) { BOOST_AUTO_TEST_CASE(testSelectorFromOptions) { char* argv[]={ 0, - "--log.enable", "error+:foo", - "--log.enable", "debug:bar", - "--log.enable", "info" + "--log-enable", "error+:foo", + "--log-enable", "debug:bar", + "--log-enable", "info" }; qpid::log::Options opts; opts.parse(ARGC(argv), argv); @@ -322,10 +322,10 @@ BOOST_AUTO_TEST_CASE(testOptionsFormat) { BOOST_CHECK_EQUAL(Logger::TIME|Logger::LEVEL, l.format(opts)); char* argv[]={ 0, - "--log.time", "no", - "--log.level", "no", - "--log.source", "1", - "--log.thread", "1" + "--log-time", "no", + "--log-level", "no", + "--log-source", "1", + "--log-thread", "1" }; opts.parse(ARGC(argv), argv); BOOST_CHECK_EQUAL( @@ -335,10 +335,10 @@ BOOST_AUTO_TEST_CASE(testOptionsFormat) { Options opts; // Clear. char* argv[]={ 0, - "--log.level", "no", - "--log.thread", "true", - "--log.function", "YES", - "--log.time", "YES" + "--log-level", "no", + "--log-thread", "true", + "--log-function", "YES", + "--log-time", "YES" }; opts.parse(ARGC(argv), argv); BOOST_CHECK_EQUAL( @@ -353,10 +353,10 @@ BOOST_AUTO_TEST_CASE(testLoggerConfigure) { Options opts; char* argv[]={ 0, - "--log.time", "no", - "--log.source", "yes", - "--log.output", "logging.tmp", - "--log.enable", "critical" + "--log-time", "no", + "--log-source", "yes", + "--log-output", "logging.tmp", + "--log-enable", "critical" }; opts.parse(ARGC(argv), argv); l.configure(opts, "test"); |
