Commit 7a03bbdc authored by Keith Packard's avatar Keith Packard

During test run, remove cache directory to avoid stale cache usage.

As file timestamps have only one second granularity, an old cache
file could easily be used when a test took less than 1 second to run.
Just remove the cache directory and its contents before each test is run.
Also, remove mention of the old cache file from the test config file.
parent 1e4080ea
<fontconfig>
<dir>@FONTDIR@</dir>
<cache>@CACHEFILE@</cache>
<cachedir>@CACHEDIR@</cachedir>
</fontconfig>
......@@ -2,7 +2,6 @@
TESTDIR=${srcdir-`pwd`}
FONTDIR=`pwd`/fonts
CACHEFILE=`pwd`/fonts.cache
CACHEDIR=`pwd`/cache.dir
ECHO=true
......@@ -29,7 +28,7 @@ check () {
}
prep() {
rm -rf $CACHEFILE
rm -rf $CACHEDIR
rm -rf $FONTDIR
mkdir $FONTDIR
}
......@@ -40,7 +39,6 @@ dotest () {
}
sed "s!@FONTDIR@!$FONTDIR!
s!@CACHEFILE@!$CACHEFILE!
s!@CACHEDIR@!$CACHEDIR!" < $TESTDIR/fonts.conf.in > fonts.conf
FONTCONFIG_FILE=`pwd`/fonts.conf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment