diff options
author | Brad King <brad.king@kitware.com> | 2016-05-10 17:08:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-10 17:28:37 (GMT) |
commit | 9aa7a286ddb4bfa567d440adb1bab477ddf2dfd2 (patch) | |
tree | 07f02776f596b26c8ccbd49f2b0923d9d10f0cbf /test | |
parent | c9228c37f05af96e5ac5c62a344a58b47deeed20 (diff) | |
download | CastXML-9aa7a286ddb4bfa567d440adb1bab477ddf2dfd2.zip CastXML-9aa7a286ddb4bfa567d440adb1bab477ddf2dfd2.tar.gz CastXML-9aa7a286ddb4bfa567d440adb1bab477ddf2dfd2.tar.bz2 |
test: Split GNU-float128-nostart test inputs
Use explicit input source files for these tests so that we can later
change the original test sources to cover more cases.
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 4 | ||||
-rw-r--r-- | test/expect/gccxml.any.GNU-float128-nostart.xml.txt | 2 | ||||
-rw-r--r-- | test/expect/gccxml.c.GNU-float128-nostart.xml.txt | 2 | ||||
-rw-r--r-- | test/input/GNU-float128-nostart.c | 1 | ||||
-rw-r--r-- | test/input/GNU-float128-nostart.cxx | 1 |
5 files changed, 4 insertions, 6 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 575ab81..5aa3766 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -419,20 +419,16 @@ castxml_test_gccxml_broken(ReferenceType-to-Class-template) set(castxml_test_gccxml_extra_arguments --castxml-cc-gnu-c "(" $<TARGET_FILE:cc-gnu> --cc-define=__x86_64__ ")") castxml_test_gccxml_c(GNU-float128) -set(castxml_test_gccxml_custom_input GNU-float128) set(castxml_test_gccxml_custom_start "") castxml_test_gccxml_c(GNU-float128-nostart) unset(castxml_test_gccxml_custom_start) -unset(castxml_test_gccxml_custom_input) unset(castxml_test_gccxml_extra_arguments) set(castxml_test_gccxml_extra_arguments --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> --cc-define=__x86_64__ ")") castxml_test_gccxml(GNU-float128) -set(castxml_test_gccxml_custom_input GNU-float128) set(castxml_test_gccxml_custom_start "") castxml_test_gccxml(GNU-float128-nostart) unset(castxml_test_gccxml_custom_start) -unset(castxml_test_gccxml_custom_input) unset(castxml_test_gccxml_extra_arguments) set(castxml_test_gccxml_extra_arguments --castxml-cc-gnu-c $<TARGET_FILE:cc-gnu>) diff --git a/test/expect/gccxml.any.GNU-float128-nostart.xml.txt b/test/expect/gccxml.any.GNU-float128-nostart.xml.txt index 826d133..1ff90f7 100644 --- a/test/expect/gccxml.any.GNU-float128-nostart.xml.txt +++ b/test/expect/gccxml.any.GNU-float128-nostart.xml.txt @@ -1,5 +1,5 @@ ^<\?xml version="1.0"\?> <GCC_XML[^>]*> .*<FundamentalType id="_[0-9]+" name="__float128" size="128" align="128"/>.* - <File id="f1" name=".*/test/input/GNU-float128.cxx"/> + <File id="f1" name=".*/test/input/GNU-float128-nostart.cxx"/> </GCC_XML>$ diff --git a/test/expect/gccxml.c.GNU-float128-nostart.xml.txt b/test/expect/gccxml.c.GNU-float128-nostart.xml.txt index 58d80c4..7d81e8c 100644 --- a/test/expect/gccxml.c.GNU-float128-nostart.xml.txt +++ b/test/expect/gccxml.c.GNU-float128-nostart.xml.txt @@ -1,5 +1,5 @@ ^<\?xml version="1.0"\?> <GCC_XML[^>]*> .*<FundamentalType id="_[0-9]+" name="__float128" size="128" align="128"/>.* - <File id="f1" name=".*/test/input/GNU-float128.c"/> + <File id="f1" name=".*/test/input/GNU-float128-nostart.c"/> </GCC_XML>$ diff --git a/test/input/GNU-float128-nostart.c b/test/input/GNU-float128-nostart.c new file mode 100644 index 0000000..fbb07e1 --- /dev/null +++ b/test/input/GNU-float128-nostart.c @@ -0,0 +1 @@ +__float128 start(__float128); diff --git a/test/input/GNU-float128-nostart.cxx b/test/input/GNU-float128-nostart.cxx new file mode 100644 index 0000000..fbb07e1 --- /dev/null +++ b/test/input/GNU-float128-nostart.cxx @@ -0,0 +1 @@ +__float128 start(__float128); |