]> granicus.if.org Git - php/commitdiff
make sure embedded server is correctly initialized
authorHartmut Holzgraefe <hholzgra@php.net>
Tue, 11 Jul 2006 23:41:40 +0000 (23:41 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Tue, 11 Jul 2006 23:41:40 +0000 (23:41 +0000)
ext/mysqli/tests/connect.inc
ext/mysqli/tests/skipifnotemb.inc [new file with mode: 0644]

index 2fcf4ff0fff36e6c45155165bab119719a1e6ea7..b6cea2632b006261bc5e65a470f7b9415c28030b 100644 (file)
@@ -15,7 +15,8 @@
                                        "--datadir=$path", 
                                        "--innodb_data_home_dir=$path",
                                        "--innodb_data_file_path=ibdata1:10M:autoextend",
-                                       "--log-error=$path/testrun.log"
+                                       "--log-error=$path/testrun.log",
+                                       "--init-connect='CREATE DATABASE IF NOT EXISTS test;'"
                                );
                $driver->embedded_server_start(TRUE, $args, NULL);
        }
diff --git a/ext/mysqli/tests/skipifnotemb.inc b/ext/mysqli/tests/skipifnotemb.inc
new file mode 100644 (file)
index 0000000..8639130
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+  $driver = new mysqli_driver();
+  if (!$driver->embedded) 
+    die("skip test for with embedded server only");
+?>