1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-20 23:16:04 +02:00
Commit Graph

52 Commits

Author SHA1 Message Date
Jun-ichi Takimoto 7f2bdf55a3 51692: not skip tests for [[ -r/-N file ]] on Cygwin 2023-05-08 12:53:37 +09:00
Peter Stephenson daa208e907 49269: Fix "[ ! -o ]".
This should detect "-o" as non-empty string; "-a" was alrady working.
Update the test.
2021-08-10 09:19:32 +01:00
dana 80ddc46e54 45470: C02cond: Simplify '-N cond' test
This fixes an (intermittent?) issue with the test on macOS+APFS, and hopefully
makes it simpler and faster in general
2020-03-11 21:17:12 -05:00
Martijn Dekker c578f0a08b 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
Daniel Shahaf 77a39b57bf 42031 + 42048: Make [[ -o invalidoption ]] a normal(ish) false value, rather than a syntax error. 2017-11-24 22:10:27 +00:00
Barton E. Schaefer 88d12b809a 40110: attempt to fix test failures on Solaris
B02typeset: ignore strerror text in test output, it differs by OS

C02cond: discard stderr when looking for a path to the "mount" command
2016-12-06 21:32:14 -08:00
Peter Stephenson 98e297931a 40102: Use subdirectory for test I/O files 2016-12-05 16:52:22 +00:00
Oliver Kiddle fbafc5b509 39332: support ksh's [[ -v varname ]] condition for checking if variables are set 2016-09-16 00:00:28 +02:00
Peter Stephenson 1993a3cd2a 39292: Distinguish "=" and "==" tests in output.
This is both in xtrace output and shell code rebuilt from
internal structures.
2016-09-13 09:42:24 +01:00
Jun T 724021779b 38445: subsequent tests rely on a file touched by the -N test, so it must always be touched
(Bart) Minor tweak to SECONDS loop to make total of sleeps be 60 seconds
2016-05-09 20:27:57 -07:00
Barton E. Schaefer 4712b8f4d5 38375 (tweaked per 38384): try harder to detect noatime filesystems. 2016-05-02 17:31:18 -07:00
Barton E. Schaefer 59de766e26 38358: "fgrep --" for noatime check in case a mount point is named "-" 2016-04-29 13:14:10 -07:00
Peter Stephenson 1aec003155 37722: test builtin should return status 2 on syntax error 2016-01-21 16:30:21 +00:00
Oliver Kiddle 4f5d7b7b37 37453 (with Bart, started by Baptiste Daroussin, 37315): try to improve detection of noatime filesystem 2015-12-31 12:53:13 +01:00
Peter Stephenson 67877f6055 37364: "test" and "[" handling of parentheses.
If three arguments, need to prefer binary operators if possible.

Need to look for full string for parentheses.
2015-12-09 16:40:08 +00:00
Barton E. Schaefer b1688305cc 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 2015-11-21 23:56:25 -08:00
Peter Stephenson 9152ff3b46 35760: Add ZTST_skip to test system 2015-07-10 14:47:19 +01:00
Peter Stephenson cb596a55d9 35306: "test -z \(" failed due to parse confusion 2015-05-27 21:25:55 +01:00
Peter Stephenson a74fe69d05 34753: work around NFS problem in tests.
Use tmp directory if it helps us check file time comparisons.
If it doesn't we're no worse off than we were.
2015-03-20 15:00:02 +00:00
Barton E. Schaefer 9d47e8398d 32609: [[ $var ]] behaves as [[ -n $var ]] for bash/ksh compatibility
Also restore ksh [ -t ] compatibility when POSIX_BUILTINS is not set, and
allow operators defined by modules to be called with no arguments, although
this affects only runtime interpretation, not parsing.
2014-05-13 08:16:50 -07:00
Peter Stephenson c866657a3c 31706: standardize handling of "test ! <x> <y> <z>" 2013-09-06 20:37:40 +01:00
Peter Stephenson 2afa556d8f 31696: In "test" No One Can Hear If You Shriek.
Treat ! as a string in "test ! -a ..." and "test ! -o ...".
2013-09-04 20:16:58 +01:00
Peter Stephenson 10082faced 30270: don't need errors when testing to see if mtime test will work 2012-02-26 18:54:52 +00:00
Frank Terbeck ea7e24879f 30048: C02cond.ztst: Avoid [[ -N ... ]] on file-systems mounted `noatime' 2011-12-30 13:37:41 +00:00
Peter Stephenson 020e116c54 28588: fix textual display after =~ test 2011-01-06 20:28:50 +00:00
pdpennock d234059b1c 28338: keep =~ from inverting sense of subsequent tests (after &&/||) 2010-10-10 00:05:24 +00:00
Peter Stephenson ed5d053514 27722: bad error reporting and checking in conditions 2010-02-19 12:45:35 +00:00
Peter Stephenson af68ff74cd 27608: fix memory for mbegin, mend & regexp test 2010-01-20 11:16:22 +00:00
Peter Stephenson 8890e6e19f 27600: extend =~ syntax to set positional variables for matches 2010-01-17 21:48:25 +00:00
Peter Stephenson baa1145609 26090: another cond test for Cygwin needs removing 2008-11-26 10:50:07 +00:00
Peter Stephenson e21bd541a2 24600: yet another typo
24602: fix test when not run
2008-02-26 20:50:11 +00:00
Peter Stephenson b24d545294 users/12412: check for extra arguments in test and [ 2008-01-10 18:53:49 +00:00
Peter Stephenson 7d9ead9a46 24356: regex =~ test wasnt handled by gettext() 2008-01-04 14:45:39 +00:00
Peter Stephenson fc9dc5940f 24236: another case where cond -N test can fail 2007-12-13 21:21:28 +00:00
Peter Stephenson d00acd5ab4 users/12307: Expand delay in [[ -N ... ]] test to 2 seconds 2007-12-11 15:24:46 +00:00
Peter Stephenson 6c60a8ec79 23732: three broken tests 2007-07-31 14:24:26 +00:00
Peter Stephenson 3778f5a3ba 23070: Fix [[ -N file ]] test failure on NFS 2006-12-19 12:09:46 +00:00
Peter Stephenson 3fc610c59f Test -nt and FOO=BAR BAR=FOO echo bugs 2005-02-02 17:03:50 +00:00
Oliver Kiddle 65f322328f mention HFS+ as possible cause of -N test failure 2004-03-17 14:22:20 +00:00
Peter Stephenson 049dce8f63 17502: Test changes for xtrace in 17492.
`F:' code indicates text to display in event of error.
2002-08-05 13:10:02 +00:00
Peter Stephenson 91edfa3b25 Alexandre Duret-Lutz: 16930: Src/cond.c, Test/C02cond.ztst:
Careful with long filenames in internal condition test; fix block
file test for `-f'.
2002-04-17 17:17:42 +00:00
Oliver Kiddle 4d1d676dba enable dynamic libraries on MacOS X is the dlcompat library is installed 2001-10-10 16:02:24 +00:00
Oliver Kiddle a886f09894 fix build and test problems in Mac OS X (15882) 2001-09-27 15:50:15 +00:00
Bart Schaefer 4ab1fb2bd3 Assorted minor test tweaks. 2001-08-22 15:59:27 +00:00
Bart Schaefer af85a561d3 Possible fix for -g test. 2001-06-09 18:14:58 +00:00
Andrey Borzenkov 475ba659a2 14566: more testing for unimplemented features. 2001-05-30 10:56:42 +00:00
Bart Schaefer 089275cd12 More device and FIFO test tweaks. 2001-05-28 16:33:54 +00:00
Andrey Borzenkov 60df1f9eec 14489: workaround for find bug on ReliantUNIX 2001-05-26 08:41:01 +00:00
Bart Schaefer ff98487aa5 Improve "make check" test for -b condition when /dev cannot be searched. 2001-05-26 01:51:28 +00:00
Bart Schaefer a71ca57c0f I guess I was supposed to commit 14411. 2001-05-24 03:06:24 +00:00