summaryrefslogtreecommitdiffstats
path: root/src/report-python/test_crash_data
blob: 6f719a8f352f0ce37efc384e4ad8126e559f1569 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/python

from report import *

cd = crash_data()
cd.add("foo", "bar")

dd = cd.create_dump_dir()

if dd:
    print "dd is nonzero"
else:
    print "dd is zero"

print "closing"
dd.close()

if dd:
    print "dd is nonzero"
else:
    print "dd is zero"