Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/etc/resolv.conf に options ( timeout / attempts ) 指定がある場合に t/04resolv_conf.t が失敗 #3

Open
dragon3 opened this issue May 15, 2013 · 2 comments

Comments

@dragon3
Copy link

dragon3 commented May 15, 2013

例えば以下のような指定が、/etc/resolv.conf にあるマシン上で失敗します。

options timeout:2 attempts:2

prove の結果は以下です。

$ prove -vl t/04resolv_conf.t
t/04resolv_conf.t ..
ok 1
not ok 2

#   Failed test at t/04resolv_conf.t line 14.
#     Structures begin differing at:
#          $got->[1] = '2'
#     $expected->[1] = '5'
ok 3
ok 4
ok 5
1..5
# Looks like you failed 1 test of 5.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/5 subtests

Test Summary Report
-------------------
t/04resolv_conf.t (Wstat: 256 Tests: 5 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
Files=1, Tests=5,  1 wallclock secs ( 0.09 usr  0.03 sys +  0.08 cusr  0.02 csys =  0.22 CPU)
Result: FAIL

テストコードの問題かもと思ったのですが、ご確認いただけるとうれしいです。

@kazuho
Copy link
Owner

kazuho commented May 18, 2013

ありがとうございます。

とりあえず一般的な使用形態では問題ないと思いますが、これ設計のバグですね。ちょっと考えます。

@dragon3
Copy link
Author

dragon3 commented May 20, 2013

よろしくお願いします 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants