mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
This commit is contained in:
commit
f00046c818
File diff suppressed because it is too large
Load Diff
|
@ -1,8 +1,8 @@
|
|||
/* A Bison parser, made by GNU Bison 3.0.2. */
|
||||
/* A Bison parser, made by GNU Bison 3.0.4. */
|
||||
|
||||
/* Bison interface for Yacc-like parsers in C
|
||||
|
||||
Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
|
||||
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -116,10 +116,10 @@ extern int Aqldebug;
|
|||
|
||||
/* Value type. */
|
||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||
typedef union YYSTYPE YYSTYPE;
|
||||
|
||||
union YYSTYPE
|
||||
{
|
||||
#line 17 "arangod/Aql/grammar.y" /* yacc.c:1909 */
|
||||
#line 17 "arangod/Aql/grammar.y" /* yacc.c:1915 */
|
||||
|
||||
triagens::aql::AstNode* node;
|
||||
struct {
|
||||
|
@ -129,8 +129,10 @@ union YYSTYPE
|
|||
bool boolval;
|
||||
int64_t intval;
|
||||
|
||||
#line 133 "arangod/Aql/grammar.hpp" /* yacc.c:1909 */
|
||||
#line 133 "arangod/Aql/grammar.hpp" /* yacc.c:1915 */
|
||||
};
|
||||
|
||||
typedef union YYSTYPE YYSTYPE;
|
||||
# define YYSTYPE_IS_TRIVIAL 1
|
||||
# define YYSTYPE_IS_DECLARED 1
|
||||
#endif
|
||||
|
|
|
@ -1129,7 +1129,7 @@ VocbaseCollectionInfo::VocbaseCollectionInfo (TRI_vocbase_t* vocbase,
|
|||
|
||||
memset(_name, 0, sizeof(_name));
|
||||
|
||||
if (name != '\0') {
|
||||
if (name != nullptr && *name != '\0') {
|
||||
TRI_CopyString(_name, name, sizeof(_name) - 1);
|
||||
}
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@ var MochaSuite = require('mocha/lib/suite');
|
|||
var MochaRunner = require('mocha/lib/runner');
|
||||
var BaseReporter = require('mocha/lib/reporters/base');
|
||||
var DefaultReporter = require('mocha/lib/reporters/json');
|
||||
var isWindows = require('internal').platform.substr(0, 3) === 'win';
|
||||
|
||||
function notIn(arr) {
|
||||
return function (item) {
|
||||
|
@ -127,7 +128,9 @@ function findTestFiles(app) {
|
|||
});
|
||||
return paths.filter(function (path) {
|
||||
return path && matchers.some(function (pattern) {
|
||||
return pattern.match(path);
|
||||
return pattern.match(
|
||||
isWindows ? path.replace(/\\/g, '/') : path
|
||||
);
|
||||
}) && fs.isFile(fs.join(basePath, path));
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue