From: Feross Aboukhadijeh Date: Wed, 29 Apr 2015 03:23:58 +0000 (-0700) Subject: pull latest iojs buffer tests X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=5b6235dac2f12217bf0be963a122d8be47855cde;p=buffer.git pull latest iojs buffer tests --- diff --git a/bin/download-node-tests.js b/bin/download-node-tests.js index f543071..0f15dbb 100755 --- a/bin/download-node-tests.js +++ b/bin/download-node-tests.js @@ -41,7 +41,9 @@ function downloadBufferTests (dir, files) { path = __dirname + '/../test/es6/' + file.name } - hyperquest(file.download_url, httpOpts) + var downloadUrl = file.download_url.replace('/master/', '/v1.x/') + + hyperquest(downloadUrl, httpOpts) .pipe(split()) .pipe(testfixer(file.name)) .pipe(fs.createWriteStream(path)) diff --git a/test/node/test-buffer.js b/test/node/test-buffer.js index 2c57965..b9bf4b6 100644 --- a/test/node/test-buffer.js +++ b/test/node/test-buffer.js @@ -1182,3 +1182,8 @@ Buffer.poolSize = 0; assert.equal(Buffer(1).parent, undefined); Buffer.poolSize = ps; +// Test Buffer.copy() segfault +assert.throws(function() { + Buffer(10).copy(); +}); +