Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Locking a SQLite DB for tests

by bliako (Monsignor)
on Jan 27, 2022 at 12:29 UTC ( [id://11140891]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use lib 'lib';
    use strict;
    ...
    wait; # for our child
    
    done_testing();
    
  2. or download this
    use strict;
    use warnings;
    ...
    #wait; # for our child, this is handled by fork_ok
    
    #done_testing(); not needed
    
  3. or download this
    use strict;
    use warnings;
    ...
    $dbh_locked->disconnect;
    
    done_testing();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://11140891]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found