On 19 Apr 2004, at 08:50, steve.hay@uk.radan.com via RT wrote:
Show quoted text> Output is now as below:
Now I am convinced it has something todo with the test using tmp_file
and seek(). Looking at the output, regardless of what is send the test
always returns the data that the last syswrite sent.
Ah, writing that sent alarm bells ringing. IIRC on win32 select(0 only
works on pipes, yes ?
If so then it could be failing for that reason. If I am right then
http://svn.mutatus.co.uk/repos/libnet/trunk/t/datasend.t
Should fail on datasend. And the following should fix the error (I
think)
http://svn.mutatus.co.uk/repos/libnet/trunk/Net/Cmd.pm
Graham.
Show quoted text> C:\Temp\libnet-1.18>perl -Mblib t\datasend.t
> 1..15
> ok 1
> 61
> not ok 2
> Got: '0d0a2e0d0a'
> Expected: '610d0a2e0d0a'
> main t\datasend.t 43
> 610d
> not ok 3
> Got: '0d0a2e0d0a'
> Expected: '610d0d0a2e0d0a'
> main t\datasend.t 43
> 610d62
> not ok 4
> Got: '0d0a2e0d0a'
> Expected: '610d620d0a2e0d0a'
> main t\datasend.t 43
> 610d620d0a
> not ok 5
> Got: '2e0d0a'
> Expected: '610d620d0a2e0d0a'
> main t\datasend.t 43
> 610d620d0a0d0a
> not ok 6
> Got: '2e0d0a'
> Expected: '610d620d0a0d0a2e0d0a'
> main t\datasend.t 43
> 610d
> 0a62
> not ok 7
> Got: '0d0a2e0d0a'
> Expected: '610d0a620d0a2e0d0a'
> main t\datasend.t 43
> 610d
> 0a620d0a
> not ok 8
> Got: '2e0d0a'
> Expected: '610d0a620d0a2e0d0a'
> main t\datasend.t 43
> 610d
> 0a620d0a
> not ok 9
> Got: '2e0d0a'
> Expected: '610d0a620d0a2e0d0a'
> main t\datasend.t 43
> 610d
> 0a620d0a0d0a
> not ok 10
> Got: '2e0d0a'
> Expected: '610d0a620d0a0d0a2e0d0a'
> main t\datasend.t 43
> 610d0a2e2e620d0a
> not ok 11
> Got: '2e0d0a'
> Expected: '610d0a2e2e620d0a2e0d0a'
> main t\datasend.t 43
> 2e2e610d0a2e2e620d0a
> not ok 12
> Got: '2e0d0a'
> Expected: '2e2e610d0a2e2e620d0a2e0d0a'
> main t\datasend.t 43
> 2e2e610d0a
> 2e2e620d0a
> not ok 13
> Got: '2e0d0a'
> Expected: '2e2e610d0a2e2e620d0a2e0d0a'
> main t\datasend.t 43
> 2e2e61
> 2e620d0a
> not ok 14
> Got: '2e0d0a'
> Expected: '2e2e612e620d0a2e0d0a'
> main t\datasend.t 43
> 610d0a2e2e
> not ok 15
> Got: '0d0a2e0d0a'
> Expected: '610d0a2e2e0d0a2e0d0a'
> main t\datasend.t 43
>
>
>
>
> ------------------------------------------------
> Radan Computational Ltd.
>
> The information contained in this message and any files transmitted
> with it are confidential and intended for the addressee(s) only. If
> you have received this message in error or there are any problems,
> please notify the sender immediately. The unauthorized use,
> disclosure, copying or alteration of this message is strictly
> forbidden. Note that any views or opinions presented in this email
> are solely those of the author and do not necessarily represent those
> of Radan Computational Ltd. The recipient(s) of this message should
> check it and any attached files for viruses: Radan Computational will
> accept no liability for any damage caused by any virus transmitted by
> this email.
>
>
>