Project

General

Profile

Bug #7762

avoid division by zero in property_alias_001_pos

Added by Prakash Surya over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
2017-01-10
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

The property_alias_001_pos test case of the zfstest suite attempts to
perform division using `$RANDOM` as the divisor. Thus, if `$RANDOM`
happens to evaluate to zero, the test will fail. We need to update the
test to avoid this potential failure mode, which can be done by simply
adding one to the value of `$RANDOM` prior to performing the division.

History

#1

Updated by Electric Monk over 2 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit ebaf15cbf77990ba1195796dfd9cb9dbd61d8ac9

commit  ebaf15cbf77990ba1195796dfd9cb9dbd61d8ac9
Author: Prakash Surya <prakash.surya@delphix.com>
Date:   2017-01-18T22:48:51.000Z

    7762 avoid division by zero in property_alias_001_pos
    Reviewed by: John Kennedy <john.kennedy@delphix.com>
    Reviewed by: Matt Ahrens <mahrens@delphix.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF