lit/TestingConfig.py: Add the environment variable PRINTF_EXPONENT_DIGITS as workarou...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 17 Feb 2011 05:56:41 +0000 (05:56 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 17 Feb 2011 05:56:41 +0000 (05:56 +0000)
FIXME: It does not improve MSVC's issue.

[Danil Malyshev] Defining PRINTF_EXPONENT_DIGITS env is the suggested way to make MinGW ANSI/POSIX compatible. This is not only about the case we are discussing, but in general, I'd like to have explicitly defined compatibility mode for all the tests running on MinGW.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125725 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/TestingConfig.py

index 440375a588bbe2f80286b21d1f50b02ae743ff49..0d9bc00a8357748435dc460edb9818ca9ed019c5 100644 (file)
@@ -17,6 +17,7 @@ class TestingConfig:
                 'PATHEXT' : os.environ.get('PATHEXT',''),
                 'SYSTEMROOT' : os.environ.get('SYSTEMROOT',''),
                 'LLVM_DISABLE_CRT_DEBUG' : '1',
+                'PRINTF_EXPONENT_DIGITS' : '2',
                 }
 
             config = TestingConfig(parent,