aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-10 20:30:54 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-10 20:30:54 -0700
commit4ee1cc3b374ccf2bba12353d459e189f65f37244 (patch)
treed2ab244f465436d4953a835896488e7072206010 /common.cpp
parent11dd904b6db661a2ff5c3cfc5b394ebaececd4f5 (diff)
Make ^ only act as a redirect at the beginning of a token
Diffstat (limited to 'common.cpp')
-rw-r--r--common.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/common.cpp b/common.cpp
index cf77d1e2..66f19fca 100644
--- a/common.cpp
+++ b/common.cpp
@@ -104,6 +104,10 @@ static struct winsize termsize;
void show_stackframe()
{
+ /* Hack to avoid showing backtraces in the tester */
+ if (program_name && ! wcscmp(program_name, L"(ignore)"))
+ return;
+
void *trace[32];
char **messages = (char **)NULL;
int i, trace_size = 0;
@@ -668,6 +672,9 @@ ssize_t read_loop(int fd, void *buff, size_t count)
void debug( int level, const wchar_t *msg, ... )
{
+ /* Hack to not print error messages in the tests */
+ if ( program_name && ! wcscmp(program_name, L"(ignore)") )
+ return;
va_list va;
wcstring sb;