Skip to content

Commit

Permalink
Weekend test fixes from 2021/01/18 (expect/maskpass_term and v63002/g…
Browse files Browse the repository at this point in the history
…tm8165)

- Change timeout in expect/maskpass_term (maskpassterm.m) from 30 seconds to 3 min due to timeout failure on a slower Pi system.
- Fix v63002/outref/gtm8165 reference file which was modified previous week but missed making the change in one place causing a failure.
  • Loading branch information
estess committed Jan 22, 2021
1 parent c9206ad commit bc2d4ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions expect/inref/maskpassterm.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
; Copyright (c) 2014-2016 Fidelity National Information ;
; Services, Inc. and/or its subsidiaries. All rights reserved. ;
; ;
; Copyright (c) 2021 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 ;
Expand Down Expand Up @@ -81,7 +84,8 @@
. ; Ensure that maskpass terminates in 30 seconds on any of the fatal signals.
. set killed=0
. if ("INT"=signal)!("TERM"=signal)!("SEGV"=signal)!("ABRT"=signal)!("BUS"=signal)!("FPE"=signal)!("TRAP"=signal)!("KILL"=signal) do
. . for j=1:1:150 set:($zsigproc(maskpassPid,0)) killed=1 quit:killed hang 0.2
. . ; Hang loop for 300 seconds (5 min)
. . for j=1:1:1500 set:($zsigproc(maskpassPid,0)) killed=1 quit:killed hang 0.2
. . if ('killed) do
. . . write "TEST-E-FAIL, Failed to terminate maskpass (pid "_maskpassPid_") with signal "_i_" ("_signal_").",!
. . . zhalt 1
Expand All @@ -94,7 +98,8 @@
if (0'=maskpassPid) do
. if $zsigproc(maskpassPid,9) quit
. set killed=0
. for j=1:1:150 set:($zsigproc(maskpassPid,0)) killed=1 quit:killed hang 0.2
. ; Hang loop for 300 seconds (5 min)
. for j=1:1:1500 set:($zsigproc(maskpassPid,0)) killed=1 quit:killed hang 0.2
. if ('killed) do
. . write "TEST-E-FAIL, Failed to terminate maskpass (pid "_maskpassPid_") with signal 9 (KILL).",!
. . zhalt 1
Expand Down
4 changes: 2 additions & 2 deletions v63002/outref/gtm8165.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ Post Transaction DB Crit of DEFAULT owned by pid = 0

---------------------------------------------------------------------------------

##SUSPEND_OUTPUT HOST_LINUX_ARMVXL
##SUSPEND_OUTPUT HOST_LINUX_ARMVXL HOST_LINUX_AARCH64
# Testing command without a specified timeout (writeslashtls), Expect a TPNOTACID message in the syslog still
%YDB-I-TPNOTACID, /TLS at writeslashtls+13^gtm8165 violates ACID properties of a TRANSACTION and could exceed .123 seconds;

---------------------------------------------------------------------------------

##ALLOW_OUTPUT HOST_LINUX_ARMVXL
##ALLOW_OUTPUT HOST_LINUX_ARMVXL HOST_LINUX_AARCH64
# Testing command without a specified timeout (locktimeout), Expect a TPNOTACID message in the syslog still
%YDB-I-TPNOTACID, LOCK at locktimeout+9^gtm8165 violates ACID properties of a TRANSACTION and could exceed .123 seconds;

Expand Down

0 comments on commit bc2d4ae

Please sign in to comment.