summaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-02-08 10:43:38 -0500
committerNick Mathewson <nickm@torproject.org>2019-02-08 10:43:38 -0500
commit192b312c977974680516e699c187d285f74ee8e0 (patch)
tree501bc9faf4facf56c07af4546e088228709ad2fe /scripts/test
parentab6534781996404ca57e9f5b0cbdda998579c329 (diff)
downloadtor-192b312c977974680516e699c187d285f74ee8e0.tar.gz
tor-192b312c977974680516e699c187d285f74ee8e0.zip
Fix coverage script.
It was looking for object files made with the old automake directorations, but those changed when we split up our libraries. Fixes bug 29435; bugfix on 0.3.5.1-alpha.
Diffstat (limited to 'scripts/test')
-rwxr-xr-xscripts/test/coverage4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/test/coverage b/scripts/test/coverage
index 59d468ee1e..b6e17abe25 100755
--- a/scripts/test/coverage
+++ b/scripts/test/coverage
@@ -13,8 +13,8 @@ for fn in src/core/*/*.c src/feature/*/*.c src/app/*/*.c src/lib/*/*.c; do
F=`echo $BN | sed -e 's/\.c$//;'`
GC="${BN}.gcov"
# Figure out the object file names
- ONS=`echo ${DN}/src_*-${F}.o`
- ONS_WILDCARD_LITERAL="${DN}/src_*-${F}.o"
+ ONS=$(echo "${DN}"/*testing_a-"${F}".o)
+ ONS_WILDCARD_LITERAL="${DN}/*testing_a-${F}.o"
# If the wildcard didn't expand, no files
if [ "$ONS" != "${ONS_WILDCARD_LITERAL}" ]
then