From 1e3d1171a88c10670fcb26ea110255b5f4ac3633 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Tue, 21 Jul 2009 14:10:42 +0000 Subject: [PATCH] DBD-SQLite: 36_hooks.t also segfaults on freebsd --- t/36_hooks.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/36_hooks.t b/t/36_hooks.t index ac7e54c..b9a0aea 100644 --- a/t/36_hooks.t +++ b/t/36_hooks.t @@ -112,7 +112,10 @@ foreach my $call_func (@CALL_FUNCS) { : DBD::SQLite::OK; return $retval; }; - $dbh->$call_func($authorizer, "set_authorizer") unless $^O eq 'MSWin32'; # FIXME: this line causes segfalut under Win32 + unless ($^O =~ /MSWin32|freebsd/) { + # FIXME: this line may cause segfalut + $dbh->$call_func($authorizer, "set_authorizer"); + } # try an insert (should be authorized) and check authorizer args $dbh->do("INSERT INTO hook_test VALUES ('auth_test')");