summaryrefslogtreecommitdiff
path: root/storage/maria/unittest
diff options
context:
space:
mode:
authorunknown <guilhem@mysqlwin32.>2008-02-19 09:25:31 +0100
committerunknown <guilhem@mysqlwin32.>2008-02-19 09:25:31 +0100
commitb369f21b7bc4157af94cb03a7e613a739b64329f (patch)
tree0a81fcfcaf2e0e195d7f37dff866c64be3767369 /storage/maria/unittest
parentfa8fad743f78b760cf11d8024dbc4727dbee5575 (diff)
downloadmariadb-git-b369f21b7bc4157af94cb03a7e613a739b64329f.tar.gz
Fix for failure of ma_test_loghandler_long-t on Windows
dbug/dbug.c: importing change from 6.0, which speeds up --debug on Windows (no sync) storage/maria/unittest/ma_test_loghandler-t.c: this test needs ~80 open files (logs)
Diffstat (limited to 'storage/maria/unittest')
-rw-r--r--storage/maria/unittest/ma_test_loghandler-t.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/maria/unittest/ma_test_loghandler-t.c b/storage/maria/unittest/ma_test_loghandler-t.c
index 7136b6be806..c5a9ccc2724 100644
--- a/storage/maria/unittest/ma_test_loghandler-t.c
+++ b/storage/maria/unittest/ma_test_loghandler-t.c
@@ -151,6 +151,11 @@ int main(int argc __attribute__((unused)), char *argv[])
MY_INIT(argv[0]);
+ if (my_set_max_open_files(100) < 100)
+ {
+ fprintf(stderr, "can't allocate 100 file descriptors\n");
+ exit(1);
+ }
bzero(&pagecache, sizeof(pagecache));
maria_data_root= (char *)".";
if (maria_log_remove())