[cpp-log4shib] branch master updated: Add sscpp706 into test suite.

Scott Cantor cantor.2 at osu.edu
Wed May 30 17:08:31 EDT 2018


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository cpp-log4shib.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-log4shib.git;a=commit;h=0ef81f7e843c8d57036d170b4db143eff1d939cb

The following commit(s) were added to refs/heads/master by this push:
       new  0ef81f7   Add sscpp706 into test suite.
0ef81f7 is described below

commit 0ef81f7e843c8d57036d170b4db143eff1d939cb
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed May 30 17:08:27 2018 -0400

    Add sscpp706 into test suite.
---
 tests/sscpp706.cpp | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/tests/sscpp706.cpp b/tests/sscpp706.cpp
index 4046831..42e7321 100644
--- a/tests/sscpp706.cpp
+++ b/tests/sscpp706.cpp
@@ -5,10 +5,7 @@
 
 int main(int argc, char* argv[])
 {
-    if (argc < 2)
-        return 1;
-
-    std::string initFileName = argv[1];
+    std::string initFileName = argc > 1 ? argv[1] : "sscpp706.txt";
     try {
         log4shib::PropertyConfigurator::configure(initFileName);
         log4shib::Category& root = log4shib::Category::getRoot();
@@ -20,4 +17,5 @@ int main(int argc, char* argv[])
     }
 
     return 0;
-}
\ No newline at end of file
+}
+

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list