SUBST=$1
FILEDIR=`dirname $TESTNAME`
-# Make diagnostic printing more determinstic.
-export COLUMNS=0
-
OUTPUT=Output/$1.out
# create the output directory if it does not already exist
/// \returns the width of the terminal (in characters), if there is a
/// terminal. If there is no terminal, returns 0.
static unsigned getTerminalWidth() {
+ // Is this a terminal? If not, don't wrap by default.
+ if (!llvm::sys::Process::StandardErrIsDisplayed())
+ return 0;
+
// If COLUMNS is defined in the environment, wrap to that many columns.
if (const char *ColumnsStr = std::getenv("COLUMNS")) {
int Columns = atoi(ColumnsStr);
return Columns;
}
- // Is this a terminal? If not, don't wrap by default.
- if (!llvm::sys::Process::StandardErrIsDisplayed())
- return 0;
-
#if HAVE_SYS_TYPES_H
// Try to determine the width of the terminal.
struct winsize ws;