diff options
Diffstat (limited to 'test/etap/040-util.t')
-rwxr-xr-x | test/etap/040-util.t | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/test/etap/040-util.t b/test/etap/040-util.t index 94db4534..c23dc97f 100755 --- a/test/etap/040-util.t +++ b/test/etap/040-util.t @@ -1,6 +1,18 @@ #!/usr/bin/env escript %% -*- erlang -*- +% Licensed under the Apache License, Version 2.0 (the "License"); you may not +% use this file except in compliance with the License. You may obtain a copy of +% the License at +% +% http://www.apache.org/licenses/LICENSE-2.0 +% +% Unless required by applicable law or agreed to in writing, software +% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +% License for the specific language governing permissions and limitations under +% the License. + main(_) -> code:add_pathz("src/couchdb"), application:start(crypto), @@ -26,13 +38,13 @@ test() -> % terminate_linked Self = self(), spawn(fun() -> - ChildPid = spawn_link(fun() -> receive shutdown -> ok end end), - couch_util:terminate_linked(normal), - Self ! {pid, ChildPid} - end), + ChildPid = spawn_link(fun() -> receive shutdown -> ok end end), + couch_util:terminate_linked(normal), + Self ! {pid, ChildPid} + end), receive {pid, Pid} -> - etap:ok(not is_process_alive(Pid), "why wont this work?") + etap:ok(not is_process_alive(Pid), "why wont this work?") end, % new_uuid |