[njs] Moving test added in ab5d059e4ef8 to a conditional list.

Dmitry Volyntsev xeioex at nginx.com
Thu May 30 14:14:49 UTC 2019


details:   https://hg.nginx.org/njs/rev/b6ecd0086ed3
branches:  
changeset: 994:b6ecd0086ed3
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Thu May 30 16:16:22 2019 +0300
description:
Moving test added in ab5d059e4ef8 to a conditional list.

As it can fail on older libpcre versions (pcre-7.8 for example).

diffstat:

 njs/test/njs_unit_test.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r ab5d059e4ef8 -r b6ecd0086ed3 njs/test/njs_unit_test.c
--- a/njs/test/njs_unit_test.c	Thu May 30 14:17:59 2019 +0300
+++ b/njs/test/njs_unit_test.c	Thu May 30 16:16:22 2019 +0300
@@ -7240,9 +7240,6 @@ static njs_unit_test_t  njs_test[] =
     { nxt_string("/^[A-Za-z0-9+/]{4}$/.test('////')"),
       nxt_string("true") },
 
-    { nxt_string("/[\\uFDE0-\\uFFFD]/g; export default 1"),
-      nxt_string("SyntaxError: Illegal export statement in 1") },
-
     { nxt_string("'[]!\"#$%&\\'()*+,.\\/:;<=>?@\\^_`{|}-'.split('')"
                  ".every(ch=>/[\\]\\[!\"#$%&'()*+,.\\/:;<=>?@\\^_`{|}-]/.test(ch))"),
       nxt_string("true") },
@@ -12785,6 +12782,9 @@ static njs_unit_test_t  njs_regexp_test[
 
     { nxt_string("RegExp('[\\\\u0430-\\\\u044f]+').exec('тест')[0]"),
       nxt_string("тест") },
+
+    { nxt_string("/[\\uFDE0-\\uFFFD]/g; export default 1"),
+      nxt_string("SyntaxError: Illegal export statement in 1") },
 };
 
 


More information about the nginx-devel mailing list