aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/warnings_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-10-26 11:20:10 +0200
committerBjörn Gustavsson <[email protected]>2012-10-26 11:20:10 +0200
commita8b2ba096dc48a29af52fd68070089d4bbb37483 (patch)
treeafca45311523d2da2fcb545e3649e0717a059dcd /lib/compiler/test/warnings_SUITE.erl
parenta6608f9e67b9f67e8d21bc3df81ba8129755741a (diff)
parentd18ab0179e83f378026cea87dea026cae1077bec (diff)
downloadotp-a8b2ba096dc48a29af52fd68070089d4bbb37483.tar.gz
otp-a8b2ba096dc48a29af52fd68070089d4bbb37483.tar.bz2
otp-a8b2ba096dc48a29af52fd68070089d4bbb37483.zip
Merge branch 'bjorn/compiler/test-cases'
* bjorn/compiler/test-cases: Correct typo in test suite name compiler: Run testcases in parallel
Diffstat (limited to 'lib/compiler/test/warnings_SUITE.erl')
-rw-r--r--lib/compiler/test/warnings_SUITE.erl14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/compiler/test/warnings_SUITE.erl b/lib/compiler/test/warnings_SUITE.erl
index f6a572abfa..9ce0df5ec4 100644
--- a/lib/compiler/test/warnings_SUITE.erl
+++ b/lib/compiler/test/warnings_SUITE.erl
@@ -55,12 +55,13 @@ suite() -> [{ct_hooks,[ts_install_cth]}].
all() ->
test_lib:recompile(?MODULE),
- [pattern, pattern2, pattern3, pattern4, guard,
- bad_arith, bool_cases, bad_apply, files, effect,
- bin_opt_info, bin_construction].
+ [{group,p}].
groups() ->
- [].
+ [{p,test_lib:parallel(),
+ [pattern,pattern2,pattern3,pattern4,guard,
+ bad_arith,bool_cases,bad_apply,files,effect,
+ bin_opt_info,bin_construction]}].
init_per_suite(Config) ->
Config.
@@ -556,9 +557,10 @@ run(Config, Tests) ->
%% Compiles a test module and returns the list of errors and warnings.
run_test(Conf, Test0, Warnings) ->
- Filename = 'warnings_test.erl',
+ Mod = "warnings_"++test_lib:uniq(),
+ Filename = Mod ++ ".erl",
?line DataDir = ?privdir,
- ?line Test = ["-module(warnings_test). ", Test0],
+ Test = ["-module(", Mod, "). ", Test0],
?line File = filename:join(DataDir, Filename),
?line Opts = [binary,export_all,return|Warnings],
?line ok = file:write_file(File, Test),