<commit_before>#!/usr/local/bin/tcsh -f
#################################################################
#								#
# Copyright (c) 2015-2016 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.	#
#								#
#################################################################

#
# Verify that mupip jnl extract does not change the crash field.
#

source $gtm_tst/com/gtm_test_setbeforeimage.csh
setenv gtm_test_jnl SETJNL

$gtm_tst/com/dbcreate.csh mumps >&! dbcreate.log

echo "# Get the crash field left as TRUE"
$gtm_dist/mumps -run ^%XCMD 's ^x=1  zsy "kill -9 "_$j' #BYPASSOK
$MUPIP journal -show=header -forward -noverify mumps.mjl |& $grep Crash

echo "# Run the extract"
$MUPIP journal -extract -noverify -detail -for -fences=none mumps.mjl

echo "# Make sure journal extract does not reset it to FALSE"
$MUPIP journal -show=header -forward -noverify mumps.mjl |& $grep Crash

echo "# Make sure a recover goes just fine"
$MUPIP journal -recover -back -noverify "*"

$gtm_tst/com/dbcheck.csh<commit_msg>Fix occasional assert failure in v63000/gtm8483 subtest by enabling crash-related white-box variables<commit_after>#!/usr/local/bin/tcsh -f
#################################################################
#								#
# Copyright (c) 2015-2016 Fidelity National Information		#
# Services, Inc. and/or its subsidiaries. All rights reserved.	#
#								#
# Copyright (c) 2018 YottaDB LLC. 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.	#
#								#
#################################################################

#
# Verify that mupip jnl extract does not change the crash field.
#

source $gtm_tst/com/gtm_test_setbeforeimage.csh
setenv gtm_test_jnl SETJNL

$gtm_tst/com/dbcreate.csh mumps >&! dbcreate.log

echo "# Get the crash field left as TRUE"
$gtm_dist/mumps -run ^%XCMD 's ^x=1  zsy "kill -9 "_$j' #BYPASSOK
$MUPIP journal -show=header -forward -noverify mumps.mjl |& $grep Crash

echo "# Run the extract"
$MUPIP journal -extract -noverify -detail -for -fences=none mumps.mjl

echo "# Make sure journal extract does not reset it to FALSE"
$MUPIP journal -show=header -forward -noverify mumps.mjl |& $grep Crash

# Set WBTEST_CRASH_SHUTDOWN_EXPECTED to avoid assert from wcs_flu(). This test does kill -9. That could
# hit the running GT.M process while it is in the middle of executing wcs_wtstart. This could potentially
# leave some dirty buffers hanging in shared memory. So, set the white box test case to avoid asserts in wcs_flu()
# when mu_rndwn_file (invoked by mupip journal -recover which is done below) calls it.
setenv gtm_white_box_test_case_enable 1
setenv gtm_white_box_test_case_number 29

echo "# Make sure a recover goes just fine"
$MUPIP journal -recover -back -noverify "*"

$gtm_tst/com/dbcheck.csh
{'fraction_non_alphanumeric': 0.16512630930375846, 'fraction_numerical': 0.01139864448552064, 'mean_word_length': 4.211878009630818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5600199', 'n_tokens_mistral': 1146, 'n_tokens_neox': 1062, 'n_words': 373}