File: UsingTheNextMethodOnASwigIteratorRegTest.py

package info (click to toggle)
nordugrid-arc 7.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,376 kB
  • sloc: cpp: 136,694; python: 12,452; perl: 12,313; php: 11,408; sh: 10,882; ansic: 3,305; makefile: 3,160; xml: 180; sql: 130; javascript: 53; sed: 30
file content (15 lines) | stat: -rw-r--r-- 302 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'''
This regression test tests whether invoking the next method on a Swig
iterator obtained from a std::list of ARC C++ objects generates a
segmentation fault. That issue was reported in bug 2683.
'''

import arc

jobs = arc.JobList()

jobs.push_back(arc.Job())

itJobs = jobs.__iter__()

next(itJobs)