Project

General

Profile

Actions

action #10524

closed

[functional][u] Prevent use of potentially uninitialized values

Added by okurz over 8 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Enhancement to existing tests
Target version:
SUSE QA - Milestone 23
Start date:
2016-02-01
Due date:
2019-03-26
% Done:

0%

Estimated time:
Difficulty:

Description

Motivation

Prevent sneaky errors confusing users by ignoring that values are unitialized.

Acceptance criteria

  • AC1: Static code checks or unit tests in the tests distribution prevent the use of uninitialized values

Observation

https://openqa.suse.de/tests/195260/file/autoinst-log.txt

Use of uninitialized value $1 in numeric eq (==) at tests/console/zypper_up.pm line 23.
...
Use of uninitialized value $1 in numeric eq (==) at tests/console/zypper_up.pm line 28.

steps to reproduce

probably rerun these tests

problem

There is no check for uninitialized values in tests which could cause unforeseen results.

suggestion

Prevent use of potentially uninitialized values by static code checks in tests distribution.


Related issues 1 (0 open1 closed)

Blocked by openQA Tests - action #47012: [functional][u] Summary or Maintainer info missing from test modulesResolvedokurz2019-02-012019-03-26

Actions
Actions

Also available in: Atom PDF