Update of /cvsroot/lxr/lxr-tools/tests
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22260/tests
Modified Files:
MysqlTest.pm
Log Message:
Fix for bug 2789413 (MysqlTest.pm Doesn't Work on Windows)
* Use File::Spec to get the null device in an OS independent way
Index: MysqlTest.pm
===================================================================
RCS file: /cvsroot/lxr/lxr-tools/tests/MysqlTest.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- MysqlTest.pm 6 May 2009 22:33:08 -0000 1.1
+++ MysqlTest.pm 9 May 2009 13:54:24 -0000 1.2
@@ -5,6 +5,7 @@
package MysqlTest;
use strict;
+use File::Spec;
use Test::Unit;
use LXR::Config;
use LXR::Index::Mysql;
@@ -218,7 +219,7 @@
my $self = shift;
# Clear out all data in the database
- system("mysql -u lxr < initdb-mysql > /dev/null 2>&1");
+ system("mysql -u lxr < initdb-mysql > ".File::Spec->devnull()." 2>&1");
# Create config
$config = new LXR::Config("http://test/lxr", "./lxr.conf");
# Create Mysql object
|