]> zoso.dev Git - buffer.git/commitdiff
pull latest iojs buffer tests
authorFeross Aboukhadijeh <feross@feross.org>
Wed, 29 Apr 2015 03:23:58 +0000 (20:23 -0700)
committerFeross Aboukhadijeh <feross@feross.org>
Wed, 29 Apr 2015 03:23:58 +0000 (20:23 -0700)
bin/download-node-tests.js
test/node/test-buffer.js

index f543071a314cd2dd12b87d385676d5ccc8355679..0f15dbbe2ed6744507b6db2f3003546e34157c01 100755 (executable)
@@ -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))
index 2c57965383ca01306e5a653be7ded70fd95a7d93..b9bf4b663799286a7c74a235bdcb5b42c758fb22 100644 (file)
@@ -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();
+});
+