Repository: thrift
Updated Branches:
  refs/heads/master b898eaa25 -> cc4ac4955


THRIFT-2754 erlang lib tests don't clean up after themselves properly
Client: Erlang
Patch: Alisdair Sullivan

This closes #230


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/5aff35f7
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/5aff35f7
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/5aff35f7

Branch: refs/heads/master
Commit: 5aff35f7bef2ca02eb363ad9093cd62385f43cd6
Parents: b898eaa
Author: Jens Geyer <[email protected]>
Authored: Wed Oct 1 21:06:52 2014 +0200
Committer: Jens Geyer <[email protected]>
Committed: Wed Oct 1 21:06:52 2014 +0200

----------------------------------------------------------------------
 lib/erl/test/test_disklog.erl | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/5aff35f7/lib/erl/test/test_disklog.erl
----------------------------------------------------------------------
diff --git a/lib/erl/test/test_disklog.erl b/lib/erl/test/test_disklog.erl
index 17a27b0..d8cd4fc 100644
--- a/lib/erl/test/test_disklog.erl
+++ b/lib/erl/test/test_disklog.erl
@@ -47,6 +47,13 @@ disklog_test() ->
 
   {_Client3, ok} = thrift_client:close(Client2),
   io:format("Client closed~n"),
+  
+  lists:foreach(fun(File) -> file:delete(File) end, [
+    "/tmp/test_log.1",
+    "/tmp/test_log.idx",
+    "/tmp/test_log.siz"
+  ]),
+  io:format("Cleaning up test files~n"),
 
   ok.
 
@@ -80,6 +87,13 @@ disklog_base64_test() ->
   {_Client3, ok} = thrift_client:close(Client2),
   io:format("Client closed~n"),
 
+  lists:foreach(fun(File) -> file:delete(File) end, [
+    "/tmp/test_b64_log.1",
+    "/tmp/test_b64_log.idx",
+    "/tmp/test_b64_log.siz"
+  ]),
+  io:format("Cleaning up test files~n"),
+
   ok.
 
 -endif.

Reply via email to