IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 22 years ago

Closed 22 years ago

Last modified 22 years ago

#131 closed defect (fixed)

FullUnitTest, runTest bug in hostname

Reported by: Paul Price Owned by: robert.desonia@…
Priority: high Milestone:
Component: sys Version: unspecified
Severity: normal Keywords:
Cc:

Description

After doing a FullUnitTest and finding 35 (out of 81) failures, I saw that they
were all identical in terms of what was causing the failure:

--- Executing test driver atst_psAbort_01

Failed - STDERR difference

7c7
< <DATE><TIME>|<HOST>|A| main|ALL TYPES intval = 1 longval = 2
floatval = 3.010000 charval = E strval = E R R O R
---

<DATE><TIME>|<HOST> |A| main|ALL TYPES intval = 1 longval =

2 floatval = 3.010000 charval = E strval = E R R O R

Test failed (0 out of 1 testpoints failed)

It's the gap after the <HOST> that was causing the failure in each case.
In FullUnitTest and runTest, I changed instances of the line:

s/$hostname/<HOST>/g;

to:

s/$hostname\s*/<HOST>/g;

(There are two instances in each file.) Now all 81 tests pass.

Change History (1)

comment:1 by robert.desonia@…, 22 years ago

Resolution: fixed
Status: newclosed

Added suggested change to FullUnitTest and runTest in CVS. All tests still pass
on out machines.

Note: See TracTickets for help on using tickets.