From 5b6235dac2f12217bf0be963a122d8be47855cde Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Tue, 28 Apr 2015 20:23:58 -0700 Subject: [PATCH] pull latest iojs buffer tests --- bin/download-node-tests.js | 4 +++- test/node/test-buffer.js | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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(); +}); + -- 2.34.1