Skip Menu |

This queue is for tickets about the Test-Database CPAN distribution.

Report information
The Basics
Id: 43429
Status: resolved
Priority: 0/
Queue: Test-Database

People
Owner: Nobody in particular
Requestors: martijn [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.02
Fixed in: 0.99



Subject: mysql tests fail when not root
When I run make test as a user other than root, the mysql tests fail. The following is the relevant output from prove -bv t/20-sql.t: Starting mysqld daemon with databases from /tmp/Test-Database-martijn/mysql mysqld_safe[23240]: started DBI connect('host=localhost;port=45858;mysql_read_default_file=/tmp/Test-Database-martijn/mysql/my.cnf;database=test_database','martijn',...) failed: Access denied for user 'martijn'@'localhost' (using password: NO) at /home/martijn/.cpanplus/5.10.0/build/Test-Database-0.02/blib/lib/Test/Database/Handle.pm line 29 not ok 29 - The object isa DBI::db # Failed test 'The object isa DBI::db' # at t/20-sql.t line 26. # The object isn't defined Can't call method "do" on an undefined value at t/20-sql.t line 29. STOPPING server from pid file /tmp/Test-Database-martijn/mysql/mysqld.pid mysqld_safe[23259]: ended Failed 14/42 subtests