diff --git a/llvm/utils/lit/tests/test-output-micro.py b/llvm/utils/lit/tests/test-output-micro.py --- a/llvm/utils/lit/tests/test-output-micro.py +++ b/llvm/utils/lit/tests/test-output-micro.py @@ -39,7 +39,7 @@ # CHECK-NEXT: }, # CHECK-NEXT: { # CHECK-NEXT: "code": "PASS", -# CHECK-NEXT: "elapsed": {{[0-9.]+}}, +# CHECK-NEXT: "elapsed": {{[+-]?([[:digit:]]+(.[[:digit:]]*)?|.[[:digit:]]+)([eE][+-]?[[:digit:]]+)?}}, # CHECK-NEXT: "metrics": { # CHECK-NEXT: "value0": 1, # CHECK-NEXT: "value1": 2.3456 diff --git a/llvm/utils/lit/tests/test-output.py b/llvm/utils/lit/tests/test-output.py --- a/llvm/utils/lit/tests/test-output.py +++ b/llvm/utils/lit/tests/test-output.py @@ -7,7 +7,7 @@ # CHECK-NEXT: "tests": [ # CHECK-NEXT: { # CHECK-NEXT: "code": "PASS", -# CHECK-NEXT: "elapsed": {{[0-9.]+}}, +# CHECK-NEXT: "elapsed": {{[+-]?([[:digit:]]+(.[[:digit:]]*)?|.[[:digit:]]+)([eE][+-]?[[:digit:]]+)?}}, # CHECK-NEXT: "metrics": { # CHECK-NEXT: "value0": 1, # CHECK-NEXT: "value1": 2.3456