diff options
author | Dan Gudmundsson <[email protected]> | 2010-01-20 10:26:41 +0000 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2010-01-20 10:26:41 +0000 |
commit | ec976a83f338e5407111af965c05eb5d714cc864 (patch) | |
tree | 9a7e2820f04a69c3cfc3b04cb3e6b0964c4c27b3 /lib/wx/test/wxt.erl | |
parent | 8be611d3a3ab298eb59127cf58390099261c8260 (diff) | |
download | otp-ec976a83f338e5407111af965c05eb5d714cc864.tar.gz otp-ec976a83f338e5407111af965c05eb5d714cc864.tar.bz2 otp-ec976a83f338e5407111af965c05eb5d714cc864.zip |
Test case fixes
Diffstat (limited to 'lib/wx/test/wxt.erl')
-rw-r--r-- | lib/wx/test/wxt.erl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/wx/test/wxt.erl b/lib/wx/test/wxt.erl index a346a6bdb8..1f5b1cc3b1 100644 --- a/lib/wx/test/wxt.erl +++ b/lib/wx/test/wxt.erl @@ -1,19 +1,19 @@ %% %% %CopyrightBegin% -%% -%% Copyright Ericsson AB 2008-2009. All Rights Reserved. -%% +%% +%% Copyright Ericsson AB 2008-2010. All Rights Reserved. +%% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Public License along with this software. If not, it can be %% retrieved online at http://www.erlang.org/. -%% +%% %% Software distributed under the License is distributed on an "AS IS" %% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See %% the License for the specific language governing rights and limitations %% under the License. -%% +%% %% %CopyrightEnd% %%%------------------------------------------------------------------- %%% File : wxt.erl @@ -58,16 +58,16 @@ user(Mod,Tc) when is_atom(Tc) -> %% Resolves the name of test suites and test cases %% according to the alias definitions. Single atoms %% are assumed to be the name of a test suite. -resolve(Suite0) when atom(Suite0) -> +resolve(Suite0) when is_atom(Suite0) -> case alias(Suite0) of - Suite when atom(Suite) -> + Suite when is_atom(Suite) -> {Suite, all}; {Suite, Case} -> {Suite, Case} end; -resolve({Suite0, Case}) when atom(Suite0), atom(Case) -> +resolve({Suite0, Case}) when is_atom(Suite0), is_atom(Case) -> case alias(Suite0) of - Suite when atom(Suite) -> + Suite when is_atom(Suite) -> {Suite, Case}; {Suite, Case2} -> {Suite, Case2} |