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

from report import *
import report

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

dd = cd.create_crash_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"