syn_groups_SUITE.erl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. %% ==========================================================================================================
  2. %% Syn - A global Process Registry and Process Group manager.
  3. %%
  4. %% The MIT License (MIT)
  5. %%
  6. %% Copyright (c) 2016 Roberto Ostinelli <roberto@ostinelli.net> and Neato Robotics, Inc.
  7. %%
  8. %% Permission is hereby granted, free of charge, to any person obtaining a copy
  9. %% of this software and associated documentation files (the "Software"), to deal
  10. %% in the Software without restriction, including without limitation the rights
  11. %% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. %% copies of the Software, and to permit persons to whom the Software is
  13. %% furnished to do so, subject to the following conditions:
  14. %%
  15. %% The above copyright notice and this permission notice shall be included in
  16. %% all copies or substantial portions of the Software.
  17. %%
  18. %% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  19. %% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. %% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21. %% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. %% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23. %% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  24. %% THE SOFTWARE.
  25. %% ==========================================================================================================
  26. -module(syn_groups_SUITE).
  27. %% callbacks
  28. -export([all/0]).
  29. -export([init_per_suite/1, end_per_suite/1]).
  30. -export([groups/0, init_per_group/2, end_per_group/2]).
  31. -export([init_per_testcase/2, end_per_testcase/2]).
  32. %% tests
  33. -export([
  34. single_node_join/1,
  35. single_node_leave/1,
  36. single_node_kill/1,
  37. single_node_publish/1,
  38. single_node_multi_call/1,
  39. single_node_multi_call_when_recipient_crashes/1,
  40. single_node_meta/1,
  41. single_node_callback_on_process_exit/1
  42. ]).
  43. -export([
  44. two_nodes_kill/1,
  45. two_nodes_publish/1,
  46. two_nodes_multi_call/1
  47. ]).
  48. %% internals
  49. -export([recipient_loop/1]).
  50. -export([called_loop/1, called_loop_that_crashes/1]).
  51. -export([process_groups_process_exit_callback_dummy/4]).
  52. %% include
  53. -include_lib("common_test/include/ct.hrl").
  54. %% ===================================================================
  55. %% Callbacks
  56. %% ===================================================================
  57. %% -------------------------------------------------------------------
  58. %% Function: all() -> GroupsAndTestCases | {skip,Reason}
  59. %% GroupsAndTestCases = [{group,GroupName} | TestCase]
  60. %% GroupName = atom()
  61. %% TestCase = atom()
  62. %% Reason = term()
  63. %% -------------------------------------------------------------------
  64. all() ->
  65. [
  66. {group, single_node_process_groups},
  67. {group, two_nodes_process_groups}
  68. ].
  69. %% -------------------------------------------------------------------
  70. %% Function: groups() -> [Group]
  71. %% Group = {GroupName,Properties,GroupsAndTestCases}
  72. %% GroupName = atom()
  73. %% Properties = [parallel | sequence | Shuffle | {RepeatType,N}]
  74. %% GroupsAndTestCases = [Group | {group,GroupName} | TestCase]
  75. %% TestCase = atom()
  76. %% Shuffle = shuffle | {shuffle,{integer(),integer(),integer()}}
  77. %% RepeatType = repeat | repeat_until_all_ok | repeat_until_all_fail |
  78. %% repeat_until_any_ok | repeat_until_any_fail
  79. %% N = integer() | forever
  80. %% -------------------------------------------------------------------
  81. groups() ->
  82. [
  83. {single_node_process_groups, [shuffle], [
  84. single_node_join,
  85. single_node_leave,
  86. single_node_kill,
  87. single_node_publish,
  88. single_node_multi_call,
  89. single_node_multi_call_when_recipient_crashes,
  90. single_node_meta,
  91. single_node_callback_on_process_exit
  92. ]},
  93. {two_nodes_process_groups, [shuffle], [
  94. two_nodes_kill,
  95. two_nodes_publish,
  96. two_nodes_multi_call
  97. ]}
  98. ].
  99. %% -------------------------------------------------------------------
  100. %% Function: init_per_suite(Config0) ->
  101. %% Config1 | {skip,Reason} |
  102. %% {skip_and_save,Reason,Config1}
  103. %% Config0 = Config1 = [tuple()]
  104. %% Reason = term()
  105. %% -------------------------------------------------------------------
  106. init_per_suite(Config) ->
  107. %% config
  108. [
  109. {slave_node_short_name, syn_slave}
  110. | Config
  111. ].
  112. %% -------------------------------------------------------------------
  113. %% Function: end_per_suite(Config0) -> void() | {save_config,Config1}
  114. %% Config0 = Config1 = [tuple()]
  115. %% -------------------------------------------------------------------
  116. end_per_suite(_Config) -> ok.
  117. %% -------------------------------------------------------------------
  118. %% Function: init_per_group(GroupName, Config0) ->
  119. %% Config1 | {skip,Reason} |
  120. %% {skip_and_save,Reason,Config1}
  121. %% GroupName = atom()
  122. %% Config0 = Config1 = [tuple()]
  123. %% Reason = term()
  124. %% -------------------------------------------------------------------
  125. init_per_group(two_nodes_process_groups, Config) ->
  126. %% start slave
  127. SlaveNodeShortName = proplists:get_value(slave_node_short_name, Config),
  128. {ok, SlaveNode} = syn_test_suite_helper:start_slave(SlaveNodeShortName),
  129. %% config
  130. [
  131. {slave_node, SlaveNode}
  132. | Config
  133. ];
  134. init_per_group(_GroupName, Config) -> Config.
  135. %% -------------------------------------------------------------------
  136. %% Function: end_per_group(GroupName, Config0) ->
  137. %% void() | {save_config,Config1}
  138. %% GroupName = atom()
  139. %% Config0 = Config1 = [tuple()]
  140. %% -------------------------------------------------------------------
  141. end_per_group(two_nodes_process_groups, Config) ->
  142. %% get slave node name
  143. SlaveNodeShortName = proplists:get_value(slave_node_short_name, Config),
  144. %% stop slave
  145. syn_test_suite_helper:stop_slave(SlaveNodeShortName);
  146. end_per_group(_GroupName, _Config) ->
  147. ok.
  148. % ----------------------------------------------------------------------------------------------------------
  149. % Function: init_per_testcase(TestCase, Config0) ->
  150. % Config1 | {skip,Reason} | {skip_and_save,Reason,Config1}
  151. % TestCase = atom()
  152. % Config0 = Config1 = [tuple()]
  153. % Reason = term()
  154. % ----------------------------------------------------------------------------------------------------------
  155. init_per_testcase(_TestCase, Config) ->
  156. Config.
  157. % ----------------------------------------------------------------------------------------------------------
  158. % Function: end_per_testcase(TestCase, Config0) ->
  159. % void() | {save_config,Config1} | {fail,Reason}
  160. % TestCase = atom()
  161. % Config0 = Config1 = [tuple()]
  162. % Reason = term()
  163. % ----------------------------------------------------------------------------------------------------------
  164. end_per_testcase(_TestCase, Config) ->
  165. %% get slave
  166. SlaveNode = proplists:get_value(slave_node, Config),
  167. syn_test_suite_helper:clean_after_test(SlaveNode).
  168. %% ===================================================================
  169. %% Tests
  170. %% ===================================================================
  171. single_node_join(_Config) ->
  172. %% set schema location
  173. application:set_env(mnesia, schema_location, ram),
  174. %% start
  175. ok = syn:start(),
  176. ok = syn:init(),
  177. %% start process
  178. Pid = syn_test_suite_helper:start_process(),
  179. %% retrieve
  180. [] = syn:get_members(<<"my group">>),
  181. false = syn:member(Pid, <<"my group">>),
  182. %% join
  183. ok = syn:join(<<"my group">>, Pid),
  184. %% allow to rejoin
  185. ok = syn:join(<<"my group">>, Pid),
  186. %% retrieve
  187. [Pid] = syn:get_members(<<"my group">>),
  188. true = syn:member(Pid, <<"my group">>),
  189. %% kill process
  190. syn_test_suite_helper:kill_process(Pid).
  191. single_node_leave(_Config) ->
  192. %% set schema location
  193. application:set_env(mnesia, schema_location, ram),
  194. %% start
  195. ok = syn:start(),
  196. ok = syn:init(),
  197. %% start process
  198. Pid = syn_test_suite_helper:start_process(),
  199. %% retrieve
  200. [] = syn:get_members(<<"my group">>),
  201. false = syn:member(Pid, <<"my group">>),
  202. %% leave before join
  203. {error, pid_not_in_group} = syn:leave(<<"my group">>, Pid),
  204. %% join
  205. ok = syn:join(<<"my group">>, Pid),
  206. %% retrieve
  207. [Pid] = syn:get_members(<<"my group">>),
  208. true = syn:member(Pid, <<"my group">>),
  209. %% leave
  210. ok = syn:leave(<<"my group">>, Pid),
  211. %% retrieve
  212. [] = syn:get_members(<<"my group">>),
  213. false = syn:member(Pid, <<"my group">>),
  214. %% kill process
  215. syn_test_suite_helper:kill_process(Pid).
  216. single_node_kill(_Config) ->
  217. %% set schema location
  218. application:set_env(mnesia, schema_location, ram),
  219. %% start
  220. ok = syn:start(),
  221. ok = syn:init(),
  222. %% start process
  223. Pid = syn_test_suite_helper:start_process(),
  224. %% retrieve
  225. [] = syn:get_members(<<"my group 1">>),
  226. [] = syn:get_members(<<"my group 2">>),
  227. false = syn:member(Pid, <<"my group 1">>),
  228. false = syn:member(Pid, <<"my group 2">>),
  229. %% join
  230. ok = syn:join(<<"my group 1">>, Pid),
  231. ok = syn:join(<<"my group 2">>, Pid),
  232. %% retrieve
  233. [Pid] = syn:get_members(<<"my group 1">>),
  234. [Pid] = syn:get_members(<<"my group 2">>),
  235. true = syn:member(Pid, <<"my group 1">>),
  236. true = syn:member(Pid, <<"my group 2">>),
  237. %% kill process
  238. syn_test_suite_helper:kill_process(Pid),
  239. timer:sleep(100),
  240. %% retrieve
  241. [] = syn:get_members(<<"my group 1">>),
  242. [] = syn:get_members(<<"my group 2">>),
  243. false = syn:member(Pid, <<"my group 1">>),
  244. false = syn:member(Pid, <<"my group 2">>).
  245. single_node_publish(_Config) ->
  246. %% set schema location
  247. application:set_env(mnesia, schema_location, ram),
  248. %% start
  249. ok = syn:start(),
  250. ok = syn:init(),
  251. %% start processes
  252. ResultPid = self(),
  253. F = fun() -> recipient_loop(ResultPid) end,
  254. Pid1 = syn_test_suite_helper:start_process(F),
  255. Pid2 = syn_test_suite_helper:start_process(F),
  256. %% join
  257. ok = syn:join(<<"my group">>, Pid1),
  258. ok = syn:join(<<"my group">>, Pid2),
  259. %% publish
  260. syn:publish(<<"my group">>, {test, message}),
  261. %% check publish was received
  262. receive
  263. {received, Pid1, {test, message}} -> ok
  264. after 2000 ->
  265. ok = published_message_was_not_received_by_pid1
  266. end,
  267. receive
  268. {received, Pid2, {test, message}} -> ok
  269. after 2000 ->
  270. ok = published_message_was_not_received_by_pid2
  271. end,
  272. %% kill processes
  273. syn_test_suite_helper:kill_process(Pid1),
  274. syn_test_suite_helper:kill_process(Pid2).
  275. single_node_multi_call(_Config) ->
  276. %% set schema location
  277. application:set_env(mnesia, schema_location, ram),
  278. %% start
  279. ok = syn:start(),
  280. ok = syn:init(),
  281. %% start processes
  282. Pid1 = syn_test_suite_helper:start_process(fun() -> called_loop(pid1) end),
  283. Pid2 = syn_test_suite_helper:start_process(fun() -> called_loop(pid2) end),
  284. PidUnresponsive = syn_test_suite_helper:start_process(),
  285. %% register
  286. ok = syn:join(<<"my group">>, Pid1),
  287. ok = syn:join(<<"my group">>, Pid2),
  288. ok = syn:join(<<"my group">>, PidUnresponsive),
  289. %% call
  290. {Replies, BadPids} = syn:multi_call(<<"my group">>, get_pid_name),
  291. %% check responses
  292. 2 = length(Replies),
  293. pid1 = proplists:get_value(Pid1, Replies),
  294. pid2 = proplists:get_value(Pid2, Replies),
  295. [PidUnresponsive] = BadPids,
  296. %% kill processes
  297. syn_test_suite_helper:kill_process(Pid1),
  298. syn_test_suite_helper:kill_process(Pid2),
  299. syn_test_suite_helper:kill_process(PidUnresponsive).
  300. single_node_multi_call_when_recipient_crashes(_Config) ->
  301. %% set schema location
  302. application:set_env(mnesia, schema_location, ram),
  303. %% start
  304. ok = syn:start(),
  305. ok = syn:init(),
  306. %% start processes
  307. Pid1 = syn_test_suite_helper:start_process(fun() -> called_loop(pid1) end),
  308. Pid2 = syn_test_suite_helper:start_process(fun() -> called_loop(pid2) end),
  309. PidCrashes = syn_test_suite_helper:start_process(fun() -> called_loop_that_crashes(pid_crashes) end),
  310. %% register
  311. ok = syn:join(<<"my group">>, Pid1),
  312. ok = syn:join(<<"my group">>, Pid2),
  313. ok = syn:join(<<"my group">>, PidCrashes),
  314. %% call
  315. {Time, {Replies, BadPids}} = timer:tc(syn, multi_call, [<<"my group">>, get_pid_name]),
  316. %% check that pid2 was monitored, no need to wait for timeout
  317. true = Time / 1000 < 1000,
  318. %% check responses
  319. 2 = length(Replies),
  320. pid1 = proplists:get_value(Pid1, Replies),
  321. pid2 = proplists:get_value(Pid2, Replies),
  322. [PidCrashes] = BadPids,
  323. %% kill processes
  324. syn_test_suite_helper:kill_process(Pid1),
  325. syn_test_suite_helper:kill_process(Pid2).
  326. single_node_meta(_Config) ->
  327. %% set schema location
  328. application:set_env(mnesia, schema_location, ram),
  329. %% start
  330. ok = syn:start(),
  331. ok = syn:init(),
  332. %% start process
  333. Pid = syn_test_suite_helper:start_process(),
  334. %% retrieve
  335. [] = syn:get_members(<<"my group">>, with_meta),
  336. false = syn:member(Pid, <<"my group">>),
  337. %% join
  338. ok = syn:join(<<"my group">>, Pid, {some, meta}),
  339. %% retrieve
  340. [{Pid, {some, meta}}] = syn:get_members(<<"my group">>, with_meta),
  341. %% allow to rejoin to update meta
  342. ok = syn:join(<<"my group">>, Pid, {updated, meta}),
  343. %% retrieve
  344. [{Pid, {updated, meta}}] = syn:get_members(<<"my group">>, with_meta),
  345. %% leave
  346. ok = syn:leave(<<"my group">>, Pid),
  347. %% retrieve
  348. [] = syn:get_members(<<"my group">>),
  349. false = syn:member(Pid, <<"my group">>),
  350. %% kill process
  351. syn_test_suite_helper:kill_process(Pid).
  352. single_node_callback_on_process_exit(_Config) ->
  353. CurrentNode = node(),
  354. %% set schema location
  355. application:set_env(mnesia, schema_location, ram),
  356. %% load configuration variables from syn-test.config => this defines the callback
  357. syn_test_suite_helper:set_environment_variables(),
  358. %% start
  359. ok = syn:start(),
  360. ok = syn:init(),
  361. %% register global process
  362. ResultPid = self(),
  363. global:register_name(syn_process_groups_SUITE_result, ResultPid),
  364. %% start process
  365. Pid = syn_test_suite_helper:start_process(),
  366. %% register
  367. ok = syn:join(<<"my group">>, Pid, {some, meta, 1}),
  368. ok = syn:join(<<"my other group">>, Pid, {some, meta, 2}),
  369. %% kill process
  370. syn_test_suite_helper:kill_process(Pid),
  371. %% check callback were triggered
  372. receive
  373. {exited, CurrentNode, <<"my group">>, Pid, {some, meta, 1}, killed} -> ok
  374. after 2000 ->
  375. ok = process_groups_exit_callback_was_not_called_from_local_node
  376. end,
  377. receive
  378. {exited, CurrentNode, <<"my other group">>, Pid, {some, meta, 2}, killed} -> ok
  379. after 2000 ->
  380. ok = process_groups_exit_callback_was_not_called_from_local_node
  381. end,
  382. %% unregister
  383. global:unregister_name(syn_process_groups_SUITE_result).
  384. two_nodes_kill(Config) ->
  385. %% get slave
  386. SlaveNode = proplists:get_value(slave_node, Config),
  387. %% set schema location
  388. application:set_env(mnesia, schema_location, ram),
  389. rpc:call(SlaveNode, mnesia, schema_location, [ram]),
  390. %% start
  391. ok = syn:start(),
  392. ok = syn:init(),
  393. ok = rpc:call(SlaveNode, syn, start, []),
  394. ok = rpc:call(SlaveNode, syn, init, []),
  395. timer:sleep(100),
  396. %% start processes
  397. PidLocal = syn_test_suite_helper:start_process(),
  398. PidSlave = syn_test_suite_helper:start_process(SlaveNode),
  399. %% retrieve
  400. [] = syn:get_members(<<"my group">>),
  401. false = syn:member(PidLocal, <<"my group">>),
  402. false = syn:member(PidSlave, <<"my group">>),
  403. [] = rpc:call(SlaveNode, syn, get_members, [<<"my group">>]),
  404. false = rpc:call(SlaveNode, syn, member, [PidLocal, <<"my group">>]),
  405. false = rpc:call(SlaveNode, syn, member, [PidSlave, <<"my group">>]),
  406. %% register
  407. ok = syn:join(<<"my group">>, PidSlave),
  408. ok = rpc:call(SlaveNode, syn, join, [<<"my group">>, PidLocal]),
  409. %% retrieve, pid should have the same order in all nodes
  410. [PidSlave, PidLocal] = syn:get_members(<<"my group">>),
  411. [PidSlave, PidLocal] = rpc:call(SlaveNode, syn, get_members, [<<"my group">>]),
  412. %% kill processes
  413. syn_test_suite_helper:kill_process(PidLocal),
  414. syn_test_suite_helper:kill_process(PidSlave),
  415. timer:sleep(100),
  416. %% retrieve
  417. [] = syn:get_members(<<"my group">>),
  418. false = syn:member(PidLocal, <<"my group">>),
  419. false = syn:member(PidSlave, <<"my group">>),
  420. [] = rpc:call(SlaveNode, syn, get_members, [<<"my group">>]),
  421. false = rpc:call(SlaveNode, syn, member, [PidLocal, <<"my group">>]),
  422. false = rpc:call(SlaveNode, syn, member, [PidSlave, <<"my group">>]).
  423. two_nodes_publish(Config) ->
  424. %% get slave
  425. SlaveNode = proplists:get_value(slave_node, Config),
  426. %% set schema location
  427. application:set_env(mnesia, schema_location, ram),
  428. rpc:call(SlaveNode, mnesia, schema_location, [ram]),
  429. %% start
  430. ok = syn:start(),
  431. ok = syn:init(),
  432. ok = rpc:call(SlaveNode, syn, start, []),
  433. ok = rpc:call(SlaveNode, syn, init, []),
  434. timer:sleep(100),
  435. %% start process
  436. ResultPid = self(),
  437. F = fun() -> recipient_loop(ResultPid) end,
  438. PidLocal = syn_test_suite_helper:start_process(F),
  439. PidSlave = syn_test_suite_helper:start_process(SlaveNode, F),
  440. %% register
  441. ok = syn:join(<<"my group">>, PidSlave),
  442. ok = rpc:call(SlaveNode, syn, join, [<<"my group">>, PidLocal]),
  443. %% publish
  444. syn:publish(<<"my group">>, {test, message}),
  445. %% check publish was received
  446. receive
  447. {received, PidLocal, {test, message}} -> ok
  448. after 2000 ->
  449. ok = published_message_was_not_received_by_pidlocal
  450. end,
  451. receive
  452. {received, PidSlave, {test, message}} -> ok
  453. after 2000 ->
  454. ok = published_message_was_not_received_by_pidslave
  455. end,
  456. %% kill processes
  457. syn_test_suite_helper:kill_process(PidLocal),
  458. syn_test_suite_helper:kill_process(PidSlave).
  459. two_nodes_multi_call(Config) ->
  460. %% get slave
  461. SlaveNode = proplists:get_value(slave_node, Config),
  462. %% set schema location
  463. application:set_env(mnesia, schema_location, ram),
  464. rpc:call(SlaveNode, mnesia, schema_location, [ram]),
  465. %% start
  466. ok = syn:start(),
  467. ok = syn:init(),
  468. ok = rpc:call(SlaveNode, syn, start, []),
  469. ok = rpc:call(SlaveNode, syn, init, []),
  470. timer:sleep(100),
  471. %% start processes
  472. PidLocal = syn_test_suite_helper:start_process(fun() -> called_loop(pid1) end),
  473. PidSlave = syn_test_suite_helper:start_process(SlaveNode, fun() -> called_loop(pid2) end),
  474. PidUnresponsive = syn_test_suite_helper:start_process(),
  475. %% register
  476. ok = syn:join(<<"my group">>, PidLocal),
  477. ok = syn:join(<<"my group">>, PidSlave),
  478. ok = syn:join(<<"my group">>, PidUnresponsive),
  479. timer:sleep(100),
  480. %% call
  481. {Replies, BadPids} = syn:multi_call(<<"my group">>, get_pid_name, 3000),
  482. %% check responses
  483. 2 = length(Replies),
  484. pid1 = proplists:get_value(PidLocal, Replies),
  485. pid2 = proplists:get_value(PidSlave, Replies),
  486. [PidUnresponsive] = BadPids,
  487. %% kill processes
  488. syn_test_suite_helper:kill_process(PidLocal),
  489. syn_test_suite_helper:kill_process(PidSlave),
  490. syn_test_suite_helper:kill_process(PidUnresponsive).
  491. %% ===================================================================
  492. %% Internal
  493. %% ===================================================================
  494. recipient_loop(Pid) ->
  495. receive
  496. Message -> Pid ! {received, self(), Message}
  497. end.
  498. called_loop(PidName) ->
  499. receive
  500. {syn_multi_call, CallerPid, get_pid_name} -> syn:multi_call_reply(CallerPid, PidName)
  501. end.
  502. called_loop_that_crashes(_PidName) ->
  503. receive
  504. {syn_multi_call, _CallerPid, get_pid_name} -> exit(recipient_crashed_on_purpose)
  505. end.
  506. process_groups_process_exit_callback_dummy(Name, Pid, Meta, Reason) ->
  507. global:send(syn_process_groups_SUITE_result, {exited, node(), Name, Pid, Meta, Reason}).