--- trunk/tests/store-source-not-found.sh 2008/06/03 02:41:23 130 +++ trunk/tests/store-source-not-found.sh 2009/02/18 16:08:33 427 @@ -1,6 +1,6 @@ #!/bin/sh # store-source-not-found.sh - test store with JavaScript source not found -# Copyright (C) 2008 siliconforks.com +# Copyright (C) 2008, 2009 siliconforks.com # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -18,6 +18,8 @@ set -e +. common.sh + shutdown() { wget -q -O- --post-data= "http://127.0.0.1:${server_port}/jscoverage-shutdown" > /dev/null wait $server_pid @@ -29,8 +31,6 @@ trap 'cleanup' 0 1 2 3 15 -export PATH=.:..:../js:$PATH - if [ -z "$VALGRIND" ] then delay=0.2 @@ -46,5 +46,5 @@ sleep $delay wget --post-file=store-source-not-found.json -q -O- http://127.0.0.1:8080/jscoverage-store > /dev/null -js json-cmp.js store-source-not-found.expected.json DIR/jscoverage.json +json_cmp store-source-not-found.expected.json DIR/jscoverage.json diff --strip-trailing-cr store-source-not-found.expected.err ERR