diff options
author | Paul Joseph Davis <davisp@apache.org> | 2009-05-31 00:22:25 +0000 |
---|---|---|
committer | Paul Joseph Davis <davisp@apache.org> | 2009-05-31 00:22:25 +0000 |
commit | 3f6d703833af0c2c7b6aa31525b6593588312e94 (patch) | |
tree | 3458f76061f5d6d5d14f8275881eab3081b4ac0a /test/etap/010-file-basics.t | |
parent | 2b21b31c73dfc500762360253b6e390024c7cf28 (diff) |
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
Diffstat (limited to 'test/etap/010-file-basics.t')
-rwxr-xr-x | test/etap/010-file-basics.t | 6 |
1 files changed, 3 insertions, 3 deletions
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"), |