diff options
Diffstat (limited to 'src/report-python/test_crash_data')
| -rw-r--r-- | src/report-python/test_crash_data | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/report-python/test_crash_data b/src/report-python/test_crash_data new file mode 100644 index 00000000..50afc002 --- /dev/null +++ b/src/report-python/test_crash_data @@ -0,0 +1,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" |
