aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-10-15 00:00:32 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-10-15 00:00:32 +0000
commit1585964b145063bd1211d5069887bea57073f918 (patch)
tree2c2549b704cf1234e711e6d303a260735f7cefb7
parent169234e57fd0cf73c0403329c1c1fe717ae7ba05 (diff)
downloadpaludis-1585964b145063bd1211d5069887bea57073f918.tar.gz
paludis-1585964b145063bd1211d5069887bea57073f918.tar.xz
Skip metadata tests when built without GLSA support
-rw-r--r--paludis/qa/metadata_file_TEST.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/paludis/qa/metadata_file_TEST.cc b/paludis/qa/metadata_file_TEST.cc
index 11ac1c1..2d87221 100644
--- a/paludis/qa/metadata_file_TEST.cc
+++ b/paludis/qa/metadata_file_TEST.cc
@@ -20,6 +20,7 @@
#include <paludis/qa/metadata_file.hh>
#include <test/test_framework.hh>
#include <test/test_runner.hh>
+#include "config.h"
using namespace paludis;
using namespace paludis::qa;
@@ -66,6 +67,15 @@ namespace test_cases
TEST_CHECK(f.end_maintainers() != std::find(f.begin_maintainers(),
f.end_maintainers(), std::make_pair(std::string(""), std::string("Fred the Fish"))));
}
+
+ bool skip() const
+ {
+#if ENABLE_GLSA
+ return false;
+#else
+ return true;
+#endif
+ }
} test_has_ebuilds_check;
}