diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lit/lit/TestFormats.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/lit/lit/TestFormats.py b/utils/lit/lit/TestFormats.py index e52d0e4e1c..7ffbd2bf76 100644 --- a/utils/lit/lit/TestFormats.py +++ b/utils/lit/lit/TestFormats.py @@ -1,14 +1,21 @@ import os +import platform import Test import TestRunner import Util +kIsWindows = platform.system() == 'Windows' + class GoogleTest(object): def __init__(self, test_sub_dir, test_suffix): self.test_sub_dir = str(test_sub_dir) self.test_suffix = str(test_suffix) + # On Windows, assume tests will also end in '.exe'. + if kIsWindows: + self.test_suffix += '.exe' + def getGTestTests(self, path, litConfig, localConfig): """getGTestTests(path) - [name] |