From 3f6d703833af0c2c7b6aa31525b6593588312e94 Mon Sep 17 00:00:00 2001 From: Paul Joseph Davis Date: Sun, 31 May 2009 00:22:25 +0000 Subject: Had to swap macro definitions to support R12B. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780350 13f79535-47bb-0310-9956-ffa450edef68 --- test/etap/010-file-basics.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/etap/010-file-basics.t') diff --git a/test/etap/010-file-basics.t b/test/etap/010-file-basics.t index 62704a1b..7c1c80eb 100755 --- a/test/etap/010-file-basics.t +++ b/test/etap/010-file-basics.t @@ -2,7 +2,7 @@ %% -*- erlang -*- %%! -pa ./src/couchdb -sasl errlog_type error -boot start_sasl -noshell --define(FILE_NAME, "./test/etap/temp.010"). +filename() -> "./test/etap/temp.010". main(_) -> code:add_pathz("src/couchdb"), @@ -22,11 +22,11 @@ test() -> etap:fun_is( fun({ok, _}) -> true; (_) -> false end, - couch_file:open(?FILE_NAME ++ ".1", [create, invalid_option]), + couch_file:open(filename() ++ ".1", [create, invalid_option]), "Invalid flags to open are ignored." ), - {ok, Fd} = couch_file:open(?FILE_NAME ++ ".0", [create, overwrite]), + {ok, Fd} = couch_file:open(filename() ++ ".0", [create, overwrite]), etap:ok(is_pid(Fd), "Returned file descriptor is a Pid"), -- cgit v1.2.3