[macruby-changes] [MacRuby/MacRuby] 9ef498: ext/socket: add macro of rb_sys_fail_path()
noreply at github.com
noreply at github.com
Wed Dec 14 18:23:38 PST 2011
Branch: refs/heads/master
Home: https://github.com/MacRuby/MacRuby
Commit: 9ef498abff89d3998b6738c5206c9c3ef24c8948
https://github.com/MacRuby/MacRuby/commit/9ef498abff89d3998b6738c5206c9c3ef24c8948
Author: Watson <watson1978 at gmail.com>
Date: 2011-12-13 (Tue, 13 Dec 2011)
Changed paths:
M ext/socket/socket.c
Log Message:
-----------
ext/socket: add macro of rb_sys_fail_path()
Commit: ba5848c8251b6ebff186bd5dba948fcad0bf6d4b
https://github.com/MacRuby/MacRuby/commit/ba5848c8251b6ebff186bd5dba948fcad0bf6d4b
Author: Watson <watson1978 at gmail.com>
Date: 2011-12-14 (Wed, 14 Dec 2011)
Changed paths:
M ext/socket/socket.c
Log Message:
-----------
ext/socket: store duplicated string to unixsocket's path. if change the string of path, unixsocket's path breaks
Test Script:
----
require 'socket'
require 'test/unit/assertions.rb'
include Test::Unit::Assertions
$path = "/tmp/test.sock"
$path_org = $path.dup
File.delete($path) if File.exist?($path)
sock = UNIXServer.new($path)
$path.concat("abc")
assert_equal(sock.path, $path_org)
Compare: https://github.com/MacRuby/MacRuby/compare/70b3d3f...ba5848c
More information about the macruby-changes
mailing list