Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item2286: update the memory cycle tests and add memory leak tests
git-svn-id: http://svn.foswiki.org/branches/Release01x00@5373 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
SvenDowideit
authored and
SvenDowideit
committed
Oct 24, 2009
1 parent
8fae6f1
commit cd96d39
Showing
2 changed files
with
71 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/usr/bin/perl -w | ||
# | ||
# Foswiki - The Free and Open Source Wiki, http://foswiki.org/ | ||
# | ||
# Copyright (C) 2006 SvenDowideit@wikiring.com | ||
# and Foswiki Contributors. | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
# as published by the Free Software Foundation; either version 2 | ||
# of the License, or (at your option) any later version. For | ||
# more details read LICENSE in the root of this distribution. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
# | ||
# As per the GPL, removal of this notice is prohibited. | ||
|
||
use strict; | ||
use Devel::Leak::Object qw{ GLOBAL_bless }; | ||
|
||
|
||
BEGIN { | ||
if ( defined $ENV{GATEWAY_INTERFACE} ) { | ||
$Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; | ||
use CGI::Carp qw(fatalsToBrowser); | ||
$SIG{__DIE__} = \&CGI::Carp::confess; | ||
} | ||
else { | ||
$Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; | ||
require Carp; | ||
$SIG{__DIE__} = \&Carp::confess; | ||
} | ||
$ENV{FOSWIKI_ACTION} = 'view'; | ||
@INC = ('../bin', grep { $_ ne '.' } @INC); | ||
require 'setlib.cfg'; | ||
} | ||
|
||
use Foswiki; | ||
use Foswiki::UI::View; | ||
|
||
{ | ||
## $Foswiki::Plugins::SESSION = new Foswiki(); | ||
# Foswiki::UI::run( \&Foswiki::UI::View::view ); | ||
# $Foswiki::Plugins::SESSION->finish(); | ||
# undef $Foswiki::Plugins::SESSION; | ||
$Foswiki::engine->run(); | ||
} | ||
|
||
1; |