/tags/rel-1.3.35/Examples/test-suite/python/return_const_value_runme.py
Python | 12 lines | 10 code | 2 blank | 0 comment | 2 complexity | e1cb6ce31d5ea7600dd3c28d939b7aab MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- import return_const_value
- import sys
- p = return_const_value.Foo_ptr.getPtr()
- if (p.getVal() != 17):
- print "Runtime test1 faild. p.getVal()=", p.getVal()
- sys.exit(1)
- p = return_const_value.Foo_ptr.getConstPtr()
- if (p.getVal() != 17):
- print "Runtime test2 faild. p.getVal()=", p.getVal()
- sys.exit(1)