PageRenderTime 54ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 1ms

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