projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
3d528ab
)
If test env is found we print test, otherwise we shutdown all output.
author
Brian Aker
<brian@tangent.org>
Wed, 27 Jul 2011 10:16:10 +0000
(
03:16
-0700)
committer
Brian Aker
<brian@tangent.org>
Wed, 27 Jul 2011 10:16:10 +0000
(
03:16
-0700)
libtest/cmdline.cc
patch
|
blob
|
history
diff --git
a/libtest/cmdline.cc
b/libtest/cmdline.cc
index 32d0809d82d2ecd8faf39846cafb7342ef689444..d7bed82012ccd47283db1fa4a232e2097b147770 100644
(file)
--- a/
libtest/cmdline.cc
+++ b/
libtest/cmdline.cc
@@
-60,10
+60,15
@@
bool exec_cmdline(const std::string& executable, const char *args[])
arg_buffer << " " << *ptr;
}
-#if 0
- arg_buffer << " > /dev/null 2>&1";
-#endif
- std::cerr << std::endl << arg_buffer.str() << std::endl;
+ if (getenv("LIBTEST_TEST_ENVIRONMENT"))
+ {
+ std::cerr << std::endl << arg_buffer.str() << std::endl;
+ }
+ else
+ {
+ arg_buffer << " > /dev/null 2>&1";
+ }
+
if (system(arg_buffer.str().c_str()) == -1)
{
return false;