summaryrefslogtreecommitdiff
path: root/test/test_c_flag_parsing.vader
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-01-10 11:33:33 +0000
committerGitHub <noreply@github.com>2019-01-10 11:33:33 +0000
commit721183116e91d3988185c7ca87a409f3488c5b01 (patch)
tree3ed383a45f3393d1d046d4ff4b489788ea11ccb2 /test/test_c_flag_parsing.vader
parentf23811770a8104346b7e9ccc6e586da828c8f41d (diff)
parent7e7447bb93648b79b325bbfc9d6210855fd8bbb5 (diff)
downloadale-721183116e91d3988185c7ca87a409f3488c5b01.zip
Merge pull request #2194 from fx-carton/fix-cflags-parsing
Fix cflags parsing
Diffstat (limited to 'test/test_c_flag_parsing.vader')
-rw-r--r--test/test_c_flag_parsing.vader11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test_c_flag_parsing.vader b/test/test_c_flag_parsing.vader
index 4c23c711..c33cef15 100644
--- a/test/test_c_flag_parsing.vader
+++ b/test/test_c_flag_parsing.vader
@@ -209,3 +209,14 @@ Execute(ParseCFlags should not merge flags):
\ . ' -I'. ale#path#Simplify('kernel/include') . ' '
\ . 'subdir/somedep5.o ' . 'subdir/somedep6.o '
\ )
+
+Execute(ParseCFlags should handle parenthesis and quotes):
+ AssertEqual
+ \ '-Dgoal=9 -Dtest1="('' '')" -Dtest2=''(` `)'' -Dtest3=`(" ")`',
+ \ ale#c#ParseCFlags(
+ \ ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'),
+ \ 'gcc -Dgoal=9 -Tlinkerfile.ld blabla '
+ \ . '-Dtest1="('' '')" file1.o '
+ \ . '-Dtest2=''(` `)'' file2.o '
+ \ . '-Dtest3=`(" ")` file3.o '
+ \ )