summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/dotest7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/dotest b/test/dotest
index 17b9e83..d75dbfb 100755
--- a/test/dotest
+++ b/test/dotest
@@ -257,9 +257,10 @@ echo > expected:stderr \
errtest 20 xcfinfo $S/tiletest.xcf.gz Background 'Long and low'
rm expected:stderr
-rgbfile=/usr/lib/X11/rgb.txt
-( [ -f $rgbfile ] || echo "Could not open color database file $rgbfile" ) \
- > expected.stderr
+( for a in /etc/X11/rgb.txt /usr/share/X11/rgb.txt /usr/lib/X11/rgb.txt /-/ ;
+ do [ -f $a ] && break ;
+ [ $a = /-/ ] && echo "Could not find X11 color database" ;
+ done ) > expected.stderr
echo "${XCFTOOLS_PREFIX}xcf2pnm: Unknown background color 'Plaid'" \
>> expected.stderr
errtest 20 xcf2pnm $S/tiletest.xcf.gz -b Plaid