File: printer_instance.t

package info (click to toggle)
libapache-singleton-perl 0.17-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 236 kB
  • sloc: perl: 274; makefile: 13
file content (13 lines) | stat: -rw-r--r-- 356 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!perl
#
# test that printer instances do not persist across requests
#

use strict;
use Test::More tests => 1;
use Apache::TestRequest 'GET_BODY';

my $printer_a = GET_BODY "/TestApache__Singleton__Request__printer_instance";
my $printer_b = GET_BODY "/TestApache__Singleton__Request__printer_instance";

isnt $printer_a, $printer_b, 'not same instance';