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
#else // GCC 4.7 guard
+#include <gflags/gflags.h>
+#include <gtest/gtest.h>
+
+// 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