File 0248-Fix-typos-in-erts-test.patch of Package erlang
From 2e6c85e8889a857ffb0923eec62bc53bb67bb863 Mon Sep 17 00:00:00 2001
From: "Kian-Meng, Ang" <kianmeng@cpan.org>
Date: Mon, 29 Nov 2021 09:47:20 +0800
Subject: [PATCH] Fix typos in erts/test
---
erts/test/erl_print_SUITE.erl | 2 +-
erts/test/erlexec_SUITE.erl | 2 +-
erts/test/nt_SUITE.erl | 2 +-
erts/test/otp_SUITE.erl | 8 ++++----
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/erts/test/erl_print_SUITE.erl b/erts/test/erl_print_SUITE.erl
index 544d1a8dcb..100697be94 100644
--- a/erts/test/erl_print_SUITE.erl
+++ b/erts/test/erl_print_SUITE.erl
@@ -123,7 +123,7 @@ erlang_display(Config) when is_list(Config) ->
chk_display(mk_ref_xstr({e@f, oth_cre(MyCre)}, [1,2,3])),
chk_display(mk_ref_xstr({e@f, oth_cre(oth_cre(MyCre))}, [1,2,3])),
- %% Compund terms
+ %% Compound terms
{Pid, PidStr} = mk_pid_xstr({x@y, oth_cre(MyCre)}, 4712, 41),
{Port, PortStr} = mk_port_xstr({x@y, oth_cre(MyCre)}, 4712),
{Ref, RefStr} = mk_ref_xstr({e@f, oth_cre(MyCre)}, [11,12,13]),
diff --git a/erts/test/erlexec_SUITE.erl b/erts/test/erlexec_SUITE.erl
index 113f6e1ceb..e0ccc9aaa0 100644
--- a/erts/test/erlexec_SUITE.erl
+++ b/erts/test/erlexec_SUITE.erl
@@ -79,7 +79,7 @@ argument_separation(Config) when is_list(Config) ->
{ok,[[]]} = rpc:call(SName,init,get_argument,[atest]),
{ok,[[]]} = rpc:call(SName,init,get_argument,[cmd_test]),
{ok,[[]]} = rpc:call(SName,init,get_argument,[test]),
- error = rpc:call(SName,init,get_argument,[unkown]),
+ error = rpc:call(SName,init,get_argument,[unknown]),
["cmd_param","env_param","zenv_param"] = rpc:call(SName,init,get_plain_arguments,[]),
ok = cleanup_nodes(),
ok.
diff --git a/erts/test/nt_SUITE.erl b/erts/test/nt_SUITE.erl
index b2a0445ec1..8e9fe39b8b 100644
--- a/erts/test/nt_SUITE.erl
+++ b/erts/test/nt_SUITE.erl
@@ -195,7 +195,7 @@ user_env(Config) when is_list(Config) ->
remove_service(Name),
ok.
-%% Check that services are stopped and started syncronous and that
+%% Check that services are stopped and started synchronous and that
%% failed stopactions kill the erlang machine anyway.
synced(Config) when is_list(Config) ->
Name0 = "test_service_4",
diff --git a/erts/test/otp_SUITE.erl b/erts/test/otp_SUITE.erl
index 54decdb57c..a87a4d2655 100644
--- a/erts/test/otp_SUITE.erl
+++ b/erts/test/otp_SUITE.erl
@@ -142,7 +142,7 @@ wx_filter(Undef) ->
end.
diameter_filter(Undef) ->
- %% Filter away function calls that are catched.
+ %% Filter away function calls that are caught.
filter(fun({{diameter_lib,_,_},{erlang,convert_time_unit,3}}) ->
false;
({{diameter_lib,_,_},{erlang,monotonic_time,0}}) ->
@@ -625,7 +625,7 @@ get_runtime_deps(App) ->
%% Given a release dir find the path to the given dependency
find_dep_in_rel_dir(Dep, RelDirRoot) ->
%% The dependencies that we have found are cached to avoid
- %% searching through the file system unecessary many times
+ %% searching through the file system unnecessary many times
CacheId = runtime_dep_test_cache,
DepCache =
case erlang:get(CacheId) of
@@ -716,7 +716,7 @@ find_rel_root(Rel) ->
OtpRelErl -> filename:dirname(filename:dirname(OtpRelErl))
end.
-%% Find the absoulte paths to RuntimeDeps
+%% Find the absolute paths to RuntimeDeps
get_paths_to_dependencies(App, RuntimeDeps) ->
FirstAvailableOTPRel = first_available_otp_rel(),
FirstAvailableRel = erlang:list_to_integer(FirstAvailableOTPRel),
@@ -753,7 +753,7 @@ get_paths_to_dependencies(App, RuntimeDeps) ->
test_app_runtime_deps_versions(AppPath, App, IgnoredUndefinedFunctions) ->
%% Get a list of all runtime dependencies for app
RuntimeDeps = get_runtime_deps(App),
- %% Get paths to the found runtime dependices
+ %% Get paths to the found runtime dependencies
DepPaths = get_paths_to_dependencies(App, RuntimeDeps),
XRefSName = test_app_runtime_deps_versions_server,
%% Start xref server and do the test
--
2.31.1