summaryrefslogtreecommitdiffstats
path: root/src/tests/eina_graph_suite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/eina_graph_suite.c')
-rw-r--r--src/tests/eina_graph_suite.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/eina_graph_suite.c b/src/tests/eina_graph_suite.c
index 138d852..bb4cdf1 100644
--- a/src/tests/eina_graph_suite.c
+++ b/src/tests/eina_graph_suite.c
@@ -120,6 +120,8 @@ END_TEST
START_TEST (test_eina_graph_simple)
{
+ FILE *outf;
+
ck_assert(eina_graph_init() == 1);
ck_assert(eina_graph_init() == 2);
@@ -153,6 +155,10 @@ START_TEST (test_eina_graph_simple)
ck_assert(eina_graph_degree_avg(g) < 2.154);
ck_assert(eina_graph_self_loops(g) == 1);
+ outf = fopen("/tmp/eina_graph.dot", "w");
+ eina_graph_dot_write(g, outf);
+ fclose(outf);
+
eina_graph_free(g);
ck_assert(eina_graph_shutdown() == 1);