#121: t/pmc/eval.t test10 fails on cygwin
--------------------+-------------------------------------------------------
 Reporter:  rurban  |        Type:  bug   
   Status:  new     |    Priority:  normal
Milestone:          |   Component:  none  
  Version:          |    Severity:  medium
 Keywords:          |        Lang:        
    Patch:          |    Platform:  cygwin
--------------------+-------------------------------------------------------
 The "eval.get_string - same file" fails on cygwin.
 It writes twice a temp pbc file, load_bytecode it and remove in the
 middle.
 I guess that load_bytecode leaves a handle open,
 therefore rm or open > fail with Permission denied.

 On unices this will not fail because you can unlink open files,
 only on windows not. And I believe Windows is right here.

 While debugging this test I see:

 cd /tmp
 ls -al
 ??????????? ? ? ? ? ? HhY9ocQ3wA.pbc
 ls -al *.pbc
 ls: cannot access HhY9ocQ3wA.pbc: No such file or directory

 Note that cygwin has special code to circumvent unlink on open files, it
 deferes unlink until process end. And at the end of parrot this file is
 deleted.

 But the problem seems to be bigger, because load_bytecode should not leave
 a handle open.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/121>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to