File: wbox_test_init.c

package info (click to toggle)
fis-gtm 6.3-014-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 36,680 kB
  • sloc: ansic: 333,039; asm: 5,180; csh: 4,956; sh: 1,924; awk: 291; makefile: 66; sed: 13
file content (46 lines) | stat: -rwxr-xr-x 1,766 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/****************************************************************
 *								*
 * Copyright (c) 2005-2019 Fidelity National Information	*
 * Services, Inc. and/or its subsidiaries. All rights reserved.	*
 *								*
 *	This source code contains the intellectual property	*
 *	of its copyright holder(s), and is made available	*
 *	under a license.  If you do not know the terms of	*
 *	the license, please stop and do not read further.	*
 *								*
 ****************************************************************/

#include "mdef.h"
#include "gtm_stdio.h"
#include "gtm_stdlib.h"
#include "gtm_logicals.h"
#include "iosp.h"
#include "trans_log_name.h"
#include "wbox_test_init.h"

void wbox_test_init(void)
{
#	if defined (DEBUG) && !defined (STATIC_ANALYSIS)
	mstr	envvar_logical, trans_name;
	char	trans_bufr[MAX_TRANS_NAME_LEN];

	envvar_logical.addr = GTM_WHITE_BOX_TEST_CASE_ENABLE;
	envvar_logical.len = SIZEOF(GTM_WHITE_BOX_TEST_CASE_ENABLE) - 1;
	if (SS_NORMAL == TRANS_LOG_NAME(&envvar_logical, &trans_name, trans_bufr, SIZEOF(trans_bufr), do_sendmsg_on_log2long))
	{
		gtm_white_box_test_case_enabled = TRUE;
		envvar_logical.addr = GTM_WHITE_BOX_TEST_CASE_NUMBER ;
		envvar_logical.len = SIZEOF(GTM_WHITE_BOX_TEST_CASE_NUMBER) - 1;
		if (SS_NORMAL == TRANS_LOG_NAME(&envvar_logical, &trans_name, trans_bufr, SIZEOF(trans_bufr),
							do_sendmsg_on_log2long))
		{
			gtm_white_box_test_case_number = ATOI(trans_name.addr);
			envvar_logical.addr = GTM_WHITE_BOX_TEST_CASE_COUNT ;
			envvar_logical.len = SIZEOF(GTM_WHITE_BOX_TEST_CASE_COUNT) - 1;
			if (SS_NORMAL == TRANS_LOG_NAME(&envvar_logical, &trans_name, trans_bufr, SIZEOF(trans_bufr),
								do_sendmsg_on_log2long))
				gtm_white_box_test_case_count = ATOI(trans_name.addr);
		}
	}
#	endif
}