[Piglit] [PATCH 2/4] cl-program-test: Add support for parsing float values in scientific notation

Tom Stellard tom at stellard.net
Thu Sep 12 10:45:20 PDT 2013


From: Tom Stellard <thomas.stellard at amd.com>

---
 tests/cl/program/program-tester.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/cl/program/program-tester.c b/tests/cl/program/program-tester.c
index a153f50..be6bc20 100644
--- a/tests/cl/program/program-tester.c
+++ b/tests/cl/program/program-tester.c
@@ -76,7 +76,7 @@
 #define REGEX_BOOL_FALSE   "(0|false)"
 #define REGEX_INT          "(([+-]?[[:digit:]]+)|([+-]?0[Xx][[:digit:]abcdefABCDEF]+))"
 #define REGEX_UINT         "(([+]?[[:digit:]]+)|([+]?0[Xx][[:digit:]abcdefABCDEF]+))"
-#define REGEX_FLOAT        "(([+-]?[[:digit:]]+(\\.[[:digit:]]+)?)|"      \
+#define REGEX_FLOAT        "(([+-]?[[:digit:]]+(\\.[[:digit:]]+)?e*[+-]*[[:digit:]]*)|"      \
                              REGEX_PNAN "|" REGEX_NNAN "|" REGEX_PINF "|" \
                              REGEX_NINF ")"
 #define REGEX_BOOL_ARRAY   REGEX_DEFINE_ARRAY(REGEX_BOOL)
-- 
1.7.11.4



More information about the Piglit mailing list