1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00
- dynamic configuration support
 - safe process
 - cleanups
 - create new suite for fedarated
This commit is contained in:
msvensson@pilot.mysql.com
2007-12-12 18:19:24 +01:00
parent 601cb9f96b
commit d918988baa
265 changed files with 6164 additions and 11636 deletions

27
mysql-test/lib/t/Base.t Normal file
View File

@@ -0,0 +1,27 @@
# -*- cperl -*-
use Test::More qw(no_plan);
use strict;
use_ok ("My::SafeProcess::Base");
my $count= 0;
for (1..100){
my $pid= My::SafeProcess::Base::_safe_fork();
exit unless $pid;
(waitpid($pid, 0) == $pid) and $count++;
}
ok($count == 100, "safe_fork");
# A nice little forkbomb
SKIP: {
skip("forkbomb", 1);
eval {
while(1){
my $pid= My::SafeProcess::Base::_safe_fork();
exit unless $pid;
}
};
ok($@, "forkbomb");
}