Bug 898 - LSB 4.1: TCL couldn't open socket: host is unreachable
Summary: LSB 4.1: TCL couldn't open socket: host is unreachable
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.0
Hardware: mpc8315e-rdb ppc
: Medium normal
Target Milestone: 1.1
Assignee: Kai Kang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-03-17 18:44 UTC by Xiaofeng Yan
Modified: 2011-04-25 10:57 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xiaofeng Yan 2011-03-17 18:44:38 UTC
http::ProxyRequired 
==== Contents of test case:

    http::config -proxyhost [info hostname] -proxyport $port
    set token [http::geturl $url]
    http::wait $token
    http::config -proxyhost {} -proxyport {}
    upvar #0 $token data
    set data(body)

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: host is unreachable (No address associated with hostname)
    while executing
"http::geturl $url"
    ("uplevel" body line 3)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
Comment 1 Kai Kang 2011-03-30 02:19:54 UTC
the error occurs when do http.test Line 125:
set url //[info hostname]:$port
tcl try to resolve hostname but failed. 
So run:
# echo "127.0.0.1 `hostname`" >> /etc/hosts
will make the test passed.