mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
deps: cherry-pick cc55747 from V8 upstream
This fixes the flaky message/console test on our CI.
Original commit message:
[test/message] Allow numbers to have more than one leading digit.
The {NUMBER} regexp only allowed one, leading to occasional test
failures such as:
https://build.chromium.org/p/client.v8/builders/V8%20Mac%20-%20debug/builds/17156
Bug:
Change-Id: I25a08b80640d9af19ba70c61c846163685f1cb82
Reviewed-on: https://chromium-review.googlesource.com/753322
Reviewed-by: Franziska Hinkelmann <franzih@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49109}
PR-URL: https://github.com/nodejs/node/pull/16890
Ref: https://github.com/nodejs/build/issues/936
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
adb8f08c36
commit
7ba037592d
2 files changed
+2
-2
No files matched your search
Vendored
+1
-1
@@ -11,7 +11,7 @@
|
||||
#define V8_MAJOR_VERSION 6
|
||||
#define V8_MINOR_VERSION 1
|
||||
#define V8_BUILD_NUMBER 534
|
||||
#define V8_PATCH_LEVEL 47
|
||||
#define V8_PATCH_LEVEL 48
|
||||
|
||||
// Use 1 for candidates and 0 otherwise.
|
||||
// (Boolean macro values are not supported by all preprocessors.)
|
||||
|
||||
Vendored
+1
-1
@@ -107,7 +107,7 @@ class MessageTestSuite(testsuite.TestSuite):
|
||||
expected_lines, actual_lines, fillvalue=''):
|
||||
pattern = re.escape(expected.rstrip() % env)
|
||||
pattern = pattern.replace("\\*", ".*")
|
||||
pattern = pattern.replace("\\{NUMBER\\}", "\d(?:\.\d*)?")
|
||||
pattern = pattern.replace("\\{NUMBER\\}", "\d+(?:\.\d*)?")
|
||||
pattern = "^%s$" % pattern
|
||||
if not re.match(pattern, actual):
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user