From 3739237791ef2ac7d7f826eeecacd08918144e04 Mon Sep 17 00:00:00 2001 From: Nicholas Ormrod Date: Fri, 7 Dec 2012 14:34:19 -0800 Subject: [PATCH] dummy results in stl_vector_test on gcc 4.6 Summary: The test doesn't run when GCC < 4.7, however our test framework needs some output anyways. I've added a placeholder test that does nothing, but does cause something to be printed. Test Plan: run fbmake runtests on folly/test/stl_tests/ Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D652161 --- folly/test/stl_tests/StlVectorTest.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/folly/test/stl_tests/StlVectorTest.cpp b/folly/test/stl_tests/StlVectorTest.cpp index f2376a8e..9250307d 100644 --- a/folly/test/stl_tests/StlVectorTest.cpp +++ b/folly/test/stl_tests/StlVectorTest.cpp @@ -2732,8 +2732,17 @@ int main(int argc, char** argv) { #else // GCC 4.7 guard +#include +#include + +// do nothing +TEST(placeholder, gccversion) {} + int main(int argc, char** argv) { - return 0; + testing::InitGoogleTest(&argc, argv); + google::ParseCommandLineFlags(&argc, &argv, true); + + return RUN_ALL_TESTS(); } #endif // GCC 4.7 guard -- 2.34.1