summaryrefslogtreecommitdiffstats
path: root/src/report-python/test_crash_data
diff options
context:
space:
mode:
Diffstat (limited to 'src/report-python/test_crash_data')
-rwxr-xr-xsrc/report-python/test_crash_data21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/report-python/test_crash_data b/src/report-python/test_crash_data
new file mode 100755
index 00000000..6f719a8f
--- /dev/null
+++ b/src/report-python/test_crash_data
@@ -0,0 +1,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"