mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-09 21:24:14 +00:00
enable some oil tests on function pointers
This commit is contained in:
parent
bd370c8ec1
commit
6fc24b444c
@ -14,7 +14,7 @@ definitions = '''
|
|||||||
|
|
||||||
[cases]
|
[cases]
|
||||||
[cases.raw]
|
[cases.raw]
|
||||||
skip = "function pointers are not handled correctly"
|
oid_skip = "function pointers are not handled correctly"
|
||||||
param_types = ["const FuncPtrStruct&"]
|
param_types = ["const FuncPtrStruct&"]
|
||||||
setup = "return {{myFunction}};"
|
setup = "return {{myFunction}};"
|
||||||
expect_json = '''[{
|
expect_json = '''[{
|
||||||
@ -29,7 +29,8 @@ definitions = '''
|
|||||||
}]
|
}]
|
||||||
}]'''
|
}]'''
|
||||||
[cases.raw_chase] # We should never chase function pointers
|
[cases.raw_chase] # We should never chase function pointers
|
||||||
skip = "function pointers are not handled correctly"
|
oid_skip = "function pointers are not handled correctly"
|
||||||
|
oil_disable = "oil can't chase raw pointers safely"
|
||||||
param_types = ["const FuncPtrStruct&"]
|
param_types = ["const FuncPtrStruct&"]
|
||||||
setup = "return {{myFunction}};"
|
setup = "return {{myFunction}};"
|
||||||
cli_options = ["--chase-raw-pointers"]
|
cli_options = ["--chase-raw-pointers"]
|
||||||
@ -45,7 +46,7 @@ definitions = '''
|
|||||||
}]
|
}]
|
||||||
}]'''
|
}]'''
|
||||||
[cases.raw_null]
|
[cases.raw_null]
|
||||||
skip = "function pointers are not handled correctly"
|
oid_skip = "function pointers are not handled correctly"
|
||||||
param_types = ["const FuncPtrStruct&"]
|
param_types = ["const FuncPtrStruct&"]
|
||||||
setup = "return {{nullptr}};"
|
setup = "return {{nullptr}};"
|
||||||
expect_json = '''[{
|
expect_json = '''[{
|
||||||
@ -61,7 +62,7 @@ definitions = '''
|
|||||||
}]'''
|
}]'''
|
||||||
|
|
||||||
[cases.std_function]
|
[cases.std_function]
|
||||||
skip = "function pointers are not handled correctly"
|
oid_skip = "function pointers are not handled correctly"
|
||||||
param_types = ["std::function<void(int)> &"]
|
param_types = ["std::function<void(int)> &"]
|
||||||
setup = "return myFunction;"
|
setup = "return myFunction;"
|
||||||
expect_json = '''[{
|
expect_json = '''[{
|
||||||
@ -72,7 +73,8 @@ definitions = '''
|
|||||||
"NOT": "members"
|
"NOT": "members"
|
||||||
}]'''
|
}]'''
|
||||||
[cases.std_function_chase] # We should never chase function pointers
|
[cases.std_function_chase] # We should never chase function pointers
|
||||||
skip = "function pointers are not handled correctly"
|
oid_skip = "function pointers are not handled correctly"
|
||||||
|
oil_disable = "oil can't chase raw pointers safely"
|
||||||
param_types = ["std::function<void(int)> &"]
|
param_types = ["std::function<void(int)> &"]
|
||||||
setup = "return myFunction;"
|
setup = "return myFunction;"
|
||||||
cli_options = ["--chase-raw-pointers"]
|
cli_options = ["--chase-raw-pointers"]
|
||||||
@ -84,7 +86,7 @@ definitions = '''
|
|||||||
"NOT": "members"
|
"NOT": "members"
|
||||||
}]'''
|
}]'''
|
||||||
[cases.std_function_null]
|
[cases.std_function_null]
|
||||||
skip = "function pointers are not handled correctly"
|
oid_skip = "function pointers are not handled correctly"
|
||||||
param_types = ["std::function<void(int)> &"]
|
param_types = ["std::function<void(int)> &"]
|
||||||
setup = "return nullptr;"
|
setup = "return nullptr;"
|
||||||
expect_json = '''[{
|
expect_json = '''[{
|
||||||
|
Loading…
Reference in New Issue
Block a user