changeset 17290:5d09e015a367 v8.1.1644

patch 8.1.1644: sound test does not work on Travis commit https://github.com/vim/vim/commit/5b19e5b919ec568792e2e2301899f0e58cf9e550 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 7 15:12:12 2019 +0200 patch 8.1.1644: sound test does not work on Travis Problem: Sound test does not work on Travis. Solution: Use "sg" command to enable audio. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/4624)
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Jul 2019 15:15:04 +0200
parents e1f25cc6125d
children 4feeb79228ab
files .travis.yml src/version.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.travis.yml
+++ b/.travis.yml
@@ -75,6 +75,7 @@ anchors:
       - sh -e /etc/init.d/xvfb start && sleep 3
       - sudo modprobe snd-dummy
       - sudo usermod -a -G audio $USER
+      - do_test() { sg audio "sg $(id -gn) '$*'"; }
 
   osx: &osx
     os: osx
@@ -91,6 +92,8 @@ anchors:
       - rvm reset
       # Lua is not installed on Travis OSX
       - export LUA_PREFIX=/usr/local
+    before_script:
+      - do_test() { "$@"; }
 
   coverage: &coverage
     - ~/.local/bin/coveralls -b "${SRCDIR}" -x .xs -e "${SRCDIR}"/if_perl.c -e "${SRCDIR}"/xxd -e "${SRCDIR}"/libvterm --encodings utf-8 latin-1 EUC-KR
@@ -139,7 +142,7 @@ script:
       "${SRCDIR}"/vim --not-a-term -u NONE -S "${SRCDIR}"/testdir/if_ver-2.vim -c quit > /dev/null
       cat if_ver.txt
     fi
-  - make ${SHADOWOPT} ${TEST}
+  - do_test make ${SHADOWOPT} ${TEST}
   - echo -en "travis_fold:end:test\\r\\033[0K"
 
 # instead of a 2*2*8 matrix (2*os + 2*compiler + 8*env),
--- a/src/version.c
+++ b/src/version.c
@@ -778,6 +778,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1644,
+/**/
     1643,
 /**/
     1642,