projects
/
dbsrgits/DBIx-Class.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
f2c0897
)
Better concurrency in test (parent blocks)
Peter Rabbitson [Tue, 27 Apr 2010 14:53:06 +0000 (14:53 +0000)]
t/storage/factory_fork.t
patch
|
blob
|
blame
|
history
diff --git
a/t/storage/factory_fork.t
b/t/storage/factory_fork.t
index
30e1c6f
..
ea6fd6e
100644
(file)
--- a/
t/storage/factory_fork.t
+++ b/
t/storage/factory_fork.t
@@
-34,9
+34,12
@@
for my $type (qw/PG MYSQL/) {
skip "Fork failed: $!", 1 if (! defined $pid);
if ($pid) {
- sleep 1;
+ note "Parent $$ sleeping...";
+ wait();
+ note "Parent $$ woken up after child $pid exit";
}
else {
+ note "Child $$ terminating";
exit 0;
}