summaryrefslogtreecommitdiff
path: root/test/disabled
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-12-28 18:23:08 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2012-12-28 18:24:35 +0100
commit910e24b53da11a38afe0e44d5d2e74a7c30a0710 (patch)
treea26c11cea96d1125fd7fe7c7e03eed080c76962f /test/disabled
parentc4fc0febfacf3a79ede812d44c012093b5f2e31c (diff)
downloadnode-910e24b53da11a38afe0e44d5d2e74a7c30a0710.tar.gz
fs: remove fs.sendfile()
Said function has been broken (and useless) since v0.6.0. Remove it altogether. Fixes #3854.
Diffstat (limited to 'test/disabled')
-rw-r--r--test/disabled/test-fs-sendfile.js52
1 files changed, 0 insertions, 52 deletions
diff --git a/test/disabled/test-fs-sendfile.js b/test/disabled/test-fs-sendfile.js
deleted file mode 100644
index 44169bda6..000000000
--- a/test/disabled/test-fs-sendfile.js
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-
-
-
-var common = require('../common');
-var assert = require('assert');
-
-var net = require('net');
-var util = require('util');
-var x = path.join(common.fixturesDir, 'x.txt');
-var expected = 'xyz';
-
-var server = net.createServer(function(socket) {
- socket.on('receive', function(data) {
- found = data;
- client.close();
- socket.close();
- server.close();
- assert.equal(expected, found);
- });
-});
-server.listen(common.PORT);
-
-var client = net.createConnection(common.PORT);
-client.on('connect', function() {
- fs.open(x, 'r').addCallback(function(fd) {
- fs.sendfile(client.fd, fd, 0, expected.length)
- .addCallback(function(size) {
- assert.equal(expected.length, size);
- });
- });
-});