Bug 898

Summary: LSB 4.1: TCL couldn't open socket: host is unreachable
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Xiaofeng Yan <Xiaofeng.yan>
Component: coreAssignee: Kai Kang <kai.kang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: kai.kang, meta.mr.watcher, meta.watcher, richard.purdie, sgw
Version: 1.0   
Target Milestone: 1.1   
Hardware: mpc8315e-rdb   
OS: ppc   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

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.