From 63248e7025f11e5a48c055cab706a667a3943e5c Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Sat, 2 Feb 2008 22:26:32 +0000 Subject: [PATCH] - add unit test for sysconfig reader --- tests/zypp/base/Sysconfig_test.cc | 5 +++-- zypp/base/Sysconfig.cc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/zypp/base/Sysconfig_test.cc b/tests/zypp/base/Sysconfig_test.cc index 9255cb4..8b12ebb 100644 --- a/tests/zypp/base/Sysconfig_test.cc +++ b/tests/zypp/base/Sysconfig_test.cc @@ -29,8 +29,9 @@ void sysconfig_test( const string &dir ) Pathname file = Pathname(dir) + "proxy"; map values = zypp::base::sysconfig::read(file); BOOST_CHECK_EQUAL( values.size(), 6 ); - - + BOOST_CHECK_EQUAL( values["PROXY_ENABLED"], "no"); + BOOST_CHECK_EQUAL( values["GOPHER_PROXY"], ""); + BOOST_CHECK_EQUAL( values["NO_PROXY"], "localhost, 127.0.0.1"); } test_suite* diff --git a/zypp/base/Sysconfig.cc b/zypp/base/Sysconfig.cc index 0178cd7..253c44d 100644 --- a/zypp/base/Sysconfig.cc +++ b/zypp/base/Sysconfig.cc @@ -68,7 +68,7 @@ namespace zypp { } // not comment } // while getline - + MIL << "done reading '" << _path << "'" << endl; return ret; } -- 2.7.4