Disable deprecation warning for test of deprecated getters
Otherwise the build fails because we treat all warnings as errors.
This commit is contained in:
parent
5802cd0ba6
commit
9f0ad0ed10
|
@ -61,10 +61,13 @@ void ConfTest::test_config_repo() {
|
|||
void ConfTest::test_config_pkg_gpgcheck() {
|
||||
// Ensure both pkg_gpgcheck and gpgcheck point to the same underlying OptionBool object
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
// For ConfigMain
|
||||
CPPUNIT_ASSERT_EQUAL(&config.get_pkg_gpgcheck_option(), &config.get_gpgcheck_option());
|
||||
|
||||
// For ConfigRepo
|
||||
repo::ConfigRepo config_repo(config, "test-repo");
|
||||
CPPUNIT_ASSERT_EQUAL(&config_repo.get_pkg_gpgcheck_option(), &config_repo.get_gpgcheck_option());
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue