mirror_zfs/tests/zfs-tests/include
Ryan Moeller a2ec738c75
ZTS: Make bc conditional use compatible with new BSD bc
FreeBSD recently replaced the GNU bc and dc in the base system with
BSD licensed versions.  They are supposed to be compatible with all
the features present in the GNU versions, but it turns out they are
picky about `if` statements having a corresponding `else`.  ZTS uses
`echo "if ($x > $y) 1" | bc` in a few places, which causes tests to
fail unexpectedly with the new bc.

Change the two expressions in ZTS to `if ($x > $y) 1 else 0` for
compatibility with the new BSD bc.

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10551
2020-07-09 17:49:02 -07:00
..
.gitignore Add zpool events tests 2017-05-22 12:34:42 -04:00
blkdev.shlib Remove unnecessary references to slavery 2020-06-10 17:07:59 -07:00
commands.cfg pam: implement a zfs_key pam module 2020-06-24 18:45:44 -07:00
default.cfg.in ZTS: Fix a few defaults 2020-01-31 08:51:23 -08:00
libtest.shlib Add device rebuild feature 2020-07-03 11:05:50 -07:00
Makefile.am Fixes for make dist 2020-06-26 14:20:02 -07:00
math.shlib ZTS: Make bc conditional use compatible with new BSD bc 2020-07-09 17:49:02 -07:00
properties.shlib ZTS: Don't use edonr on FreeBSD 2020-01-28 08:38:02 -08:00
tunables.cfg Add zfs_multihost_interval tunable handler for FreeBSD 2020-06-23 13:32:42 -07:00
zpool_script.shlib zfs-tests: fix warnings when packaging some .shlib files 2019-05-24 14:12:14 -07:00