Catch STDERR in test file to prevent rule output (#613)

This commit is contained in:
Clément Oudot 2013-09-27 15:09:04 +00:00
parent 46974a3cd5
commit a81fecb46f

View File

@ -67,6 +67,7 @@ ok( $h->forgeHeadersInit, 'forgeHeadersInit' );
ok( $h->forgeHeadersInit( { exportedHeaders => { Auth => '$uid', } } ),
'forgeHeadersInit 2' );
open STDERR, '>/dev/null';
ok( $h->grant('/s'), 'basic rule "accept"' );
ok( !$h->grant('/no'), 'basic rule "deny"' );
ok( $h->grant('/a/a'), 'bad ordered rule 1/2' );