diff options
author | Davide Bertola <dade@dadeb.it> | 2014-02-13 10:07:53 +0100 |
---|---|---|
committer | Davide Bertola <dade@dadeb.it> | 2014-02-13 15:52:08 +0100 |
commit | aa14e97260f1b9e0750d2972f25ff124dde6617a (patch) | |
tree | 9c8bf551fd1373fc0c6b8f2972db9308fb48339c /tests | |
parent | 513dfb969c2317377eb0f0ec150767a8d95c6d2e (diff) | |
download | gobject-introspection-aa14e97260f1b9e0750d2972f25ff124dde6617a.tar.gz |
gi-tester: Don't use negative substring parameters
Bash from OSX 10.9 seems not to support them.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/gi-tester | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/gi-tester b/tests/gi-tester index a7be6904..51199dde 100755 --- a/tests/gi-tester +++ b/tests/gi-tester @@ -9,7 +9,9 @@ targetbase=${targetname##*/} case $targetname in *.gir) - diff -u -U 10 ${srcdir}/${targetname::-4}-expected.gir ${builddir}/${targetname} + len=${#targetname} + limit=$(expr $len - 4) + diff -u -U 10 ${srcdir}/${targetname:0:${limit}}-expected.gir ${builddir}/${targetname} exit $? ;; *.typelib) |