A few small fixes to the test scripts

This commit is contained in:
Lovell Fuller 2015-04-16 11:09:05 +01:00
parent f6fd45cc90
commit 3614d14f83
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
}, },
"devDependencies": { "devDependencies": {
"imagemagick": "^0.1.3", "imagemagick": "^0.1.3",
"imagemagick-native": "^1.7.0", "imagemagick-native": "mash/node-imagemagick-native",
"gm": "^1.17.0", "gm": "^1.17.0",
"async": "^0.9.0", "async": "^0.9.0",
"semver": "^4.3.0", "semver": "^4.3.0",

View File

@ -3,6 +3,6 @@ if ! type valgrind >/dev/null; then
exit 1 exit 1
fi fi
curl -O https://raw.githubusercontent.com/jcupitt/libvips/master/libvips.supp test/leak/libvips.supp curl -O https://raw.githubusercontent.com/jcupitt/libvips/master/libvips.supp
cd ../../ cd ../../
G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --suppressions=test/leak/libvips.supp --suppressions=test/leak/sharp.supp --leak-check=full --show-leak-kinds=definite,indirect,possible --num-callers=20 --trace-children=yes npm test G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --suppressions=test/leak/libvips.supp --suppressions=test/leak/sharp.supp --leak-check=full --show-leak-kinds=definite,indirect,possible --num-callers=20 --trace-children=yes npm test

View File

@ -610,7 +610,7 @@ describe('Input/output', function() {
.toFormat('png') .toFormat('png')
.toFile(fixtures.path('output.svg.png'), function(err, info) { .toFile(fixtures.path('output.svg.png'), function(err, info) {
if (err) { if (err) {
assert.strictEqual('Input file is of an unsupported image format', err.message); assert.strictEqual(0, err.message.indexOf('Input file is of an unsupported image format'));
} else { } else {
assert.strictEqual(true, info.size > 0); assert.strictEqual(true, info.size > 0);
assert.strictEqual('png', info.format); assert.strictEqual('png', info.format);