summaryrefslogtreecommitdiffstats
path: root/src/report-python/test_dd_create
diff options
context:
space:
mode:
Diffstat (limited to 'src/report-python/test_dd_create')
-rw-r--r--src/report-python/test_dd_create20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/report-python/test_dd_create b/src/report-python/test_dd_create
new file mode 100644
index 00000000..0290482f
--- /dev/null
+++ b/src/report-python/test_dd_create
@@ -0,0 +1,20 @@
+#!/usr/bin/python
+
+from report import *
+import report
+
+dd = dd_create("testdir", 0)
+print dd
+
+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"