diff options
| author | Barton E. Schaefer <schaefer@zsh.org> | 2015-11-21 23:56:25 -0800 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2015-11-21 23:56:25 -0800 |
| commit | b1688305cc83e63104d4c581f649bbdcffa0e3b8 (patch) | |
| tree | cb398b147c03d54bb79e071d810acde5c81b501f /Test/V03mathfunc.ztst | |
| parent | unposted: Make 5.1.1-test-1 in preparation for 5.2 (diff) | |
| download | zsh-b1688305cc83e63104d4c581f649bbdcffa0e3b8.tar zsh-b1688305cc83e63104d4c581f649bbdcffa0e3b8.tar.gz zsh-b1688305cc83e63104d4c581f649bbdcffa0e3b8.tar.bz2 zsh-b1688305cc83e63104d4c581f649bbdcffa0e3b8.tar.lz zsh-b1688305cc83e63104d4c581f649bbdcffa0e3b8.tar.xz zsh-b1688305cc83e63104d4c581f649bbdcffa0e3b8.tar.zst zsh-b1688305cc83e63104d4c581f649bbdcffa0e3b8.zip | |
37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip
Diffstat (limited to 'Test/V03mathfunc.ztst')
| -rw-r--r-- | Test/V03mathfunc.ztst | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Test/V03mathfunc.ztst b/Test/V03mathfunc.ztst index ab383db43..1edb7a279 100644 --- a/Test/V03mathfunc.ztst +++ b/Test/V03mathfunc.ztst @@ -1,9 +1,7 @@ # Tests for the module zsh/mathfunc %prep - if ( zmodload -i zsh/mathfunc ) >/dev/null 2>&1; then - zmodload -i zsh/mathfunc - else + if ! zmodload zsh/mathfunc 2>/dev/null; then ZTST_unimplemented="The module zsh/mathfunc is not available." fi @@ -112,7 +110,6 @@ F:This test fails if your math library doesn't have erand48(). float -F f sum sumsq max max2 av sd typeset -a randoms randoms=('f = RANDOM' 'f = rand48()') - zmodload -i zsh/mathfunc for isource in 1 2; do (( sum = sumsq = max = 0 )) repeat $N; do |
