From 6da0fdade325c2ce0f371e661801e6beb1e70cdb Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 15 Dec 2010 18:33:43 +0100 Subject: python wrappers: make crash_data.create_crash_dump_dir() work Signed-off-by: Denys Vlasenko --- src/report-python/test_crash_data | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/report-python/test_crash_data (limited to 'src/report-python/test_crash_data') 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" -- cgit