diff options
author | 2012-07-10 20:30:54 -0700 | |
---|---|---|
committer | 2012-07-10 20:30:54 -0700 | |
commit | 4ee1cc3b374ccf2bba12353d459e189f65f37244 (patch) | |
tree | d2ab244f465436d4953a835896488e7072206010 /common.cpp | |
parent | 11dd904b6db661a2ff5c3cfc5b394ebaececd4f5 (diff) |
Make ^ only act as a redirect at the beginning of a token
Diffstat (limited to 'common.cpp')
-rw-r--r-- | common.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |