/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
1import return_const_value
2import sys
3
4p = return_const_value.Foo_ptr.getPtr()
5if (p.getVal() != 17):
6 print "Runtime test1 faild. p.getVal()=", p.getVal()
7 sys.exit(1)
8
9p = return_const_value.Foo_ptr.getConstPtr()
10if (p.getVal() != 17):
11 print "Runtime test2 faild. p.getVal()=", p.getVal()
12 sys.exit(1)