summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-05-16 11:11:26 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-05-16 13:39:01 +0300
commit2a90a15ec48cca638dab77429e388ec4699d4749 (patch)
treeffa9e0856deb86f9c5c3a2246eb7f6c0fbb63e03 /tests
parent8510e7c9588169833c0e2c17f51d6fee437810b6 (diff)
testpat: fix crtc regexp
Diffstat (limited to 'tests')
-rw-r--r--tests/testpat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testpat.cpp b/tests/testpat.cpp
index 37e19b1..a6c4bf9 100644
--- a/tests/testpat.cpp
+++ b/tests/testpat.cpp
@@ -119,8 +119,8 @@ static void get_default_crtc(Card& card, OutputInfo& output)
static void parse_crtc(Card& card, const string& crtc_str, OutputInfo& output)
{
- // @12:1920x1200-60
- const regex mode_re("(?:(@?)(\\d+):)?(?:(\\d+)x(\\d+)(i)?)(?:-(\\d+))?");
+ // @12:1920x1200@60
+ const regex mode_re("(?:(@?)(\\d+):)?(?:(\\d+)x(\\d+)(i)?)(?:@(\\d+))?");
smatch sm;
if (!regex_match(crtc_str, sm, mode_re))