Skip to content

Commit

Permalink
dummy results in stl_vector_test on gcc 4.6
Browse files Browse the repository at this point in the history
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: [email protected]

FB internal diff: D652161
  • Loading branch information
Gownta authored and jdelong committed Dec 16, 2012
1 parent 333ed39 commit 3739237
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion folly/test/stl_tests/StlVectorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2732,8 +2732,17 @@ int main(int argc, char** argv) {

#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
Expand Down

0 comments on commit 3739237

Please sign in to comment.