Author: dmacvicar
Date: Sat Feb 2 23:26:32 2008
New Revision: 8450
URL: http://svn.opensuse.org/viewcvs/zypp?rev=8450&view=rev
Log:
- add unit test for sysconfig reader
Modified:
branches/tmp/ma/jump_sat/libzypp/tests/zypp/base/Sysconfig_test.cc
branches/tmp/ma/jump_sat/libzypp/zypp/base/Sysconfig.cc
Modified: branches/tmp/ma/jump_sat/libzypp/tests/zypp/base/Sysconfig_test.cc
URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/tests/zypp/base/Sysconfig_test.cc?rev=8450&r1=8449&r2=8450&view=diff
==============================================================================
--- branches/tmp/ma/jump_sat/libzypp/tests/zypp/base/Sysconfig_test.cc (original)
+++ branches/tmp/ma/jump_sat/libzypp/tests/zypp/base/Sysconfig_test.cc Sat Feb 2 23:26:32 2008
@@ -29,8 +29,9 @@
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*
Modified: branches/tmp/ma/jump_sat/libzypp/zypp/base/Sysconfig.cc
URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/base/Sysconfig.cc?rev=8450&r1=8449&r2=8450&view=diff
==============================================================================
--- branches/tmp/ma/jump_sat/libzypp/zypp/base/Sysconfig.cc (original)
+++ branches/tmp/ma/jump_sat/libzypp/zypp/base/Sysconfig.cc Sat Feb 2 23:26:32 2008
@@ -68,7 +68,7 @@
} // not comment
} // while getline
-
+ MIL << "done reading '" << _path << "'" << endl;
return ret;
}
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org