diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-04-24 12:56:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-04-24 12:56:19 +0200 |
commit | 3f99152276def2b8f88a3dd5f87f645e9e875da2 (patch) | |
tree | e10ff52b2477a98aea70a93389ce3b425607cb55 /src/testdir | |
parent | b70a473e24e36fd14361ece54da37e3ca7155fdd (diff) | |
download | vim-3f99152276def2b8f88a3dd5f87f645e9e875da2.zip |
updated for version 7.3.906
Problem: The "sleep .2" for running tests does not work on Solaris.
Solution: Fall back to using "sleep 1". (Laurent Blume)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testdir/Makefile b/src/testdir/Makefile index bcaed91d2..f76f6459b 100644 --- a/src/testdir/Makefile +++ b/src/testdir/Makefile @@ -69,8 +69,10 @@ test1.out: test1.in .in.out: -rm -rf $*.failed test.ok $(RM_ON_RUN) cp $*.ok test.ok - # Sleep a moment to avoid that the xterm title is messed up - @-sleep .2 + # Sleep a moment to avoid that the xterm title is messed up. + # 200 msec is sufficient, but only modern sleep supports a fraction of + # a second, fall back to a second if it fails. + @-/bin/sh -c "sleep .2 > /dev/null 2>&1 || sleep 1" -$(RUN_VIM) $*.in # For flaky tests retry one time. |