You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2014/10/09 12:46:01 UTC

git commit: THRIFT-2777: move erlang test files into .eunit scratch dir

Repository: thrift
Updated Branches:
  refs/heads/master 07218673b -> ec71f2ebc


THRIFT-2777: move erlang test files into .eunit scratch dir

client: erlang
patch: alisdair sullivan

tests could fail with eaccess error if run as an account with
innapropriate permissions


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

Branch: refs/heads/master
Commit: ec71f2ebc55b79faa3534ecb0c0d6f3476a3d5bf
Parents: 0721867
Author: alisdair sullivan <al...@yahoo.ca>
Authored: Wed Oct 8 18:26:11 2014 -0700
Committer: Roger Meier <ro...@apache.org>
Committed: Thu Oct 9 12:38:55 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/thrift/blob/ec71f2eb/lib/erl/test/test_disklog.erl
----------------------------------------------------------------------
diff --git a/lib/erl/test/test_disklog.erl b/lib/erl/test/test_disklog.erl
index 6286bc0..dcb6fc1 100644
--- a/lib/erl/test/test_disklog.erl
+++ b/lib/erl/test/test_disklog.erl
@@ -26,7 +26,7 @@ disklog_test() ->
   {ok, TransportFactory} =
     thrift_disk_log_transport:new_transport_factory(
       test_disklog,
-      [{file, "/tmp/test_log"},
+      [{file, "./test_log"},
        {size, {1024*1024, 10}}]),
   {ok, ProtocolFactory} =
     thrift_binary_protocol:new_protocol_factory( TransportFactory, []),
@@ -49,9 +49,9 @@ disklog_test() ->
   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"
+    "./test_log.1",
+    "./test_log.idx",
+    "./test_log.siz"
   ]),
   io:format("Cleaning up test files~n"),
 
@@ -61,7 +61,7 @@ disklog_base64_test() ->
   {ok, TransportFactory} =
     thrift_disk_log_transport:new_transport_factory(
       test_disklog,
-      [{file, "/tmp/test_b64_log"},
+      [{file, "./test_b64_log"},
        {size, {1024*1024, 10}}]),
   {ok, B64Factory} =
     thrift_base64_transport:new_transport_factory(TransportFactory),
@@ -88,9 +88,9 @@ disklog_base64_test() ->
   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"
+    "./test_b64_log.1",
+    "./test_b64_log.idx",
+    "./test_b64_log.siz"
   ]),
   io:format("Cleaning up test files~n"),