From: Michael Stapelberg Date: Sat, 19 Aug 2017 15:44:35 +0000 (+0200) Subject: t/171-config-migrate: escape braces for newer Perl versions X-Git-Tag: 4.14~15^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F2859%2Fhead;p=i3%2Fi3 t/171-config-migrate: escape braces for newer Perl versions --- diff --git a/testcases/t/171-config-migrate.t b/testcases/t/171-config-migrate.t index 5bd21128..d855e818 100644 --- a/testcases/t/171-config-migrate.t +++ b/testcases/t/171-config-migrate.t @@ -153,7 +153,7 @@ ok(line_exists($output, qr|^bindsym Mod1\+s restart$|), 'restart unchanged'); ok(line_exists($output, qr|^bindsym Mod1\+s reload$|), 'reload unchanged'); ok(line_exists($output, qr|^bindsym Mod1\+s exit$|), 'exit unchanged'); ok(line_exists($output, qr|^bindcode Mod1\+c exec /usr/bin/urxvt$|), 'bind changed to bindcode'); -ok(line_exists($output, qr|^mode "asdf" {$|), 'mode asdf unchanged'); +ok(line_exists($output, qr|^mode "asdf" \{$|), 'mode asdf unchanged'); ok(line_exists($output, qr|^bindcode 36 mode \"default\"$|), 'mode default unchanged'); ok(line_exists($output, qr|^}$|), 'closing mode bracket still there'); @@ -336,13 +336,13 @@ ok(line_exists($output, qr|^bindsym Mod1\+3 move container to workspace work|), ##################################################################### $output = migrate_config(''); -ok(line_exists($output, qr|bar {|), 'i3bar added'); +ok(line_exists($output, qr|bar \{|), 'i3bar added'); $output = migrate_config('workspace_bar enable'); -ok(line_exists($output, qr|bar {|), 'i3bar added'); +ok(line_exists($output, qr|bar \{|), 'i3bar added'); $output = migrate_config('workspace_bar no'); -ok(!line_exists($output, qr|bar {|), 'no i3bar added'); +ok(!line_exists($output, qr|bar \{|), 'no i3bar added'); ##################################################################### # check whether the mode command gets quotes