Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Commit

Permalink
CART-855 cart: new test to catch hg_cancel failure
Browse files Browse the repository at this point in the history
    - Update and enable rpc_to_ghost_rank test which tests HG_Cancel()
      to a dead rank.
    - Modify python test script for IV test so that avocado reports
      error if the server didn't shut down cleanly.

Signed-off-by: Yulu Jia <yulu.jia@intel.com>
  • Loading branch information
yulujia committed Feb 27, 2020
1 parent 46411b9 commit e244005
Show file tree
Hide file tree
Showing 8 changed files with 139 additions and 314 deletions.
4 changes: 4 additions & 0 deletions src/crt_launch/crt_launch.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ int main(int argc, char **argv)
char str_rank[255];
char str_port[255];

d_log_init();
if (argc < 2) {
show_usage("Insufficient number of arguments");
return -1;
Expand Down Expand Up @@ -339,6 +340,9 @@ int main(int argc, char **argv)

if (rc == 0) {
/* Exec passed application with rest of arguments */
D_DEBUG(DB_ALL, "\n==========================================\n"
"= End of crt_launch, forking user app.\n"
"==========================================\n");
execve(g_opt.app_to_exec, &argv[g_opt.app_args_indx], environ);
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/test_group_rpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#define TEST_OPC_CHECKIN CRT_PROTO_OPC(0x010000000, 0, 0)
#define TEST_OPC_PING_DELAY CRT_PROTO_OPC(0x010000000, 0, 2)
#define TEST_OPC_SHUTDOWN CRT_PROTO_OPC(0x010000000, 0, 1)
#define TEST_OPC_PING_DELAY CRT_PROTO_OPC(0x010000000, 0, 2)


#define CRT_ISEQ_TEST_PING_DELAY /* input fields */ \
Expand Down
Loading

0 comments on commit e244005

Please sign in to comment.