#131 closed defect (fixed)
FullUnitTest, runTest bug in hostname
| Reported by: | Paul Price | Owned by: | |
|---|---|---|---|
| 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.

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