aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-06-02 16:35:15 +0800
committerPetteri Räty <petsku@petteriraty.eu>2011-06-09 11:11:43 +0300
commit36183890c078e12e2789e1cf17000f5be4833fe8 (patch)
treec78a5940ff454525735c75204ad22810146f3ddd /test
parentWalker: support != in arithmetic expansion (diff)
downloadlibbash-36183890c078e12e2789e1cf17000f5be4833fe8.tar.gz
libbash-36183890c078e12e2789e1cf17000f5be4833fe8.tar.bz2
libbash-36183890c078e12e2789e1cf17000f5be4833fe8.zip
Test: silent the error output of gtest
Diffstat (limited to 'test')
-rw-r--r--test/run_tests.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp
index 1681a81..6606a90 100644
--- a/test/run_tests.cpp
+++ b/test/run_tests.cpp
@@ -21,6 +21,8 @@
/// \brief runs unit tests for post_check
///
+#include <cstdio>
+
#include<gtest/gtest.h>
///
@@ -28,6 +30,8 @@
///
int main(int argc, char* argv[])
{
+ if(!freopen("/dev/null", "w", stderr))
+ return EXIT_FAILURE;
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}