testsuite: diet for aux-fixed/3000.pl
[exim.git] / test / aux-fixed / 3000.pl
CommitLineData
9ba4af2b
PH
1use POSIX qw(locale_h);
2
00ebeb1f 3sub foo { "Subroutine foo called with args: @_" }
9ba4af2b 4
00ebeb1f 5sub foo_undef { undef }
9ba4af2b 6
00ebeb1f 7sub foo_die { die 'expiring...' }
9ba4af2b 8
00ebeb1f 9sub readvar { Exim::expand_string("\$$_[0]") }
9ba4af2b 10
00ebeb1f 11sub return_scalar { 42 }
9ba4af2b 12
00ebeb1f 13sub return_list { (10, 20, 30) }
9ba4af2b 14
00ebeb1f 15sub return_variable_vector { @x = (4, 5, 6) }
9ba4af2b 16
00ebeb1f 17sub return_hash { (a => 4, b => 5) }
9ba4af2b 18
00ebeb1f 19sub debug_write { Exim::debug_write($_[0]); 'Wrote debug' }
9ba4af2b 20
00ebeb1f 21sub log_write { Exim::log_write($_[0]); 'Wrote log' }
9ba4af2b 22
00ebeb1f 23sub change_locale { setlocale(LC_TIME, 'fr_FR'); 'Changed locale' }
9ba4af2b 24
00ebeb1f 25sub foo_warn { warn 'this is a warning'; 'Wrote warning' }
9ba4af2b 26
00ebeb1f 27sub no_warn { $SIG{__WARN__} = sub { }; 'Discarded warnings' }