diff options
author | Keith Packard <keithp@neko.keithp.com> | 2006-08-28 10:30:22 -0700 |
---|---|---|
committer | Keith Packard <keithp@neko.keithp.com> | 2006-08-28 10:30:22 -0700 |
commit | 7a03bbdceb4ea5b673caf89bfcafa84211a456f0 (patch) | |
tree | 4df6e2e4f9125614dc652d8a641042a3173f7795 /test | |
parent | 1e4080ea49160c5af24400b8daf701412a0cc7cb (diff) |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/fonts.conf.in | 1 | ||||
-rw-r--r-- | test/run-test.sh | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/test/fonts.conf.in b/test/fonts.conf.in index 5ad85c9e..95def72d 100644 --- a/test/fonts.conf.in +++ b/test/fonts.conf.in @@ -1,5 +1,4 @@ <fontconfig> <dir>@FONTDIR@</dir> -<cache>@CACHEFILE@</cache> <cachedir>@CACHEDIR@</cachedir> </fontconfig> diff --git a/test/run-test.sh b/test/run-test.sh index 8b817c08..e7174b28 100644 --- a/test/run-test.sh +++ b/test/run-test.sh @@ -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 |