Skip to content

Commit ffae400

Browse files
authored
Merge pull request svaarala#1094 from svaarala/python-runtest
Add util/runtest.py for running individual testcases
2 parents 23bd6e7 + 72f7b8f commit ffae400

52 files changed

Lines changed: 3291 additions & 258 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

RELEASES.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1966,6 +1966,10 @@ Planned
19661966

19671967
* Add a fastint check for duk_put_number_list() values (GH-1086)
19681968

1969+
* Remove an unintended fastint downgrade check for unary minus executor
1970+
opcode (fastint downgrade check is intended to be applied to unary plus
1971+
only) (GH-903)
1972+
19691973
* Fix a few bugs in object property handling (delete property and
19701974
Object.defineProperty()) where an object property table resize triggered
19711975
by a finalizer of a previous value could cause memory unsafe behavior

doc/testcase-known-issues.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,129 +3,170 @@
33
-
44
test: "test-bi-date-tzoffset-brute-fi.js"
55
knownissue: "year 1970 deviates from expected, Duktape uses equiv. year for 1970 on purpose at the moment"
6+
# Moved
67
-
78
test: "test-bi-global-parseint.js"
89
knownissue: "rounding differences for parsing integers larger than 2^53"
10+
# Moved
911
-
1012
test: "test-bi-json-dec-types.js"
1113
knownissue: "'\\x' should be allowed by eval() but not by JSON.parse(), Duktape rejects '\\x' in both"
14+
# No longer relevant
1215
-
1316
test: "test-bi-json-enc-proplist-dups.js"
1417
knownissue: "JSON.stringify() can be given a property list to serialize; duplicates should be eliminated but Duktape (and other engines) will happily serialize a property multiple times"
18+
# Moved
1519
-
1620
test: "test-bi-number-proto-toexponential.js"
1721
knownissue: "corner case rounding errors in toExponential()"
22+
# Moved
1823
-
1924
test: "test-bi-number-proto-tostring.js"
2025
knownissue: "expect strings to be checked, but probably Duktape rounding issues"
26+
# Moved
2127
-
2228
test: "test-bi-regexp-gh39.js"
2329
knownissue: "requires leniency for non-standard regexps"
30+
# Moved
2431
-
2532
test: "test-bug-date-timeval-edges.js"
2633
knownissue: "test case depends on current timezone offset"
34+
# Moved
2735
-
2836
test: "test-bug-enum-shadow-nonenumerable.js"
2937
knownissue: "corner case enumeration semantics, not sure what correct behavior is (test262 ch12/12.6/12.6.4/12.6.4-2)"
38+
# Moved
3039
-
3140
test: "test-bug-invalid-oct-as-dec.js"
3241
knownissue: "V8/Rhino parse invalid octal constants as decimal values, Duktape doesn't at the moment"
42+
# No longer relevant
3343
-
3444
test: "test-bug-json-parse-__proto__.js"
3545
knownissue: "when ES6 __proto__ enabled, JSON.parse() parses '__proto__' property incorrectly when a specially crafted reviver is used"
46+
# Moved
3647
-
3748
test: "test-bug-numconv-1e23.js"
3849
knownissue: "corner case in floating point parse rounding"
50+
# Moved
3951
-
4052
test: "test-bug-numconv-denorm-toprec.js"
4153
knownissue: "in a denormal corner case toPrecision() can output a zero leading digit"
54+
# Moved
4255
-
4356
test: "test-bug-tonumber-u0000.js"
4457
knownissue: "'\\u0000' should ToNumber() coerce to NaN, but now coerces to zero like an empty string"
58+
# Moved
4559
-
4660
test: "test-dev-bound-thread-start-func.js"
4761
knownissue: "initial function of a new coroutine cannot be bound"
62+
# Moved
4863
-
4964
test: "test-dev-func-cons-args.js"
5065
knownissue: "corner cases for 'new Function()' when arguments and code are given as strings"
66+
# Moved
5167
-
5268
test: "test-dev-yield-after-callapply.js"
5369
knownissue: "yield() not allowed when function called via Function.prototype.(call|apply)()"
70+
# Moved
5471
-
5572
test: "test-lex-unterminated-hex-uni-escape.js"
5673
knownissue: "unterminated hex escapes should be parsed leniently, e.g. '\\uX' -> 'uX' but Duktape now refuses to parse them"
74+
# Moved
5775
-
5876
test: "test-numconv-parse-misc.js"
5977
knownissue: "rounding corner case for 1e+23 (parses/prints as 1.0000000000000001e+23)"
78+
# Moved
6079
-
6180
test: "test-numconv-tostring-gen.js"
6281
knownissue: "rounding corner cases in number-to-string coercion"
82+
# Moved
6383
-
6484
test: "test-numconv-tostring-misc.js"
6585
knownissue: "rounding corner case, 1e+23 string coerces to 1.0000000000000001e+23"
86+
# Moved
6687
-
6788
test: "test-regexp-empty-quantified.js"
6889
knownissue: "a suitable empty quantified (e.g. '(x*)*') causes regexp parsing to terminate due to step limit"
90+
# Moved
6991
-
7092
test: "test-regexp-invalid-charclass.js"
7193
knownissue: "some invalid character classes are accepted (e.g. '[\\d-z]' and '[z-x]')"
94+
# Moved
7295
-
7396
test: "test-stmt-for-in-lhs.js"
7497
knownissue: "for-in allows some invalid left-hand-side expressions which cause a runtime ReferenceError instead of a compile-time SyntaxError (e.g. 'for (a+b in [0,1]) {...}')"
98+
# Moved
7599
-
76100
test: "test-bi-array-proto-push.js"
77101
knownissue: "array length above 2^32-1 not supported"
102+
# Moved
78103
-
79104
test: "test-bi-array-push-maxlen.js"
80105
knownissue: "array length above 2^32-1 not supported"
106+
# Moved
81107
-
82108
test: "test-bug-dataview-buffer-prop.js"
83109
knownissue: "DataView .buffer property misleading when DataView argument is not an ArrayBuffer (custom behavior)"
110+
# Moved
84111
-
85112
test: "test-bi-json-enc-proxy.js"
86113
knownissue: "JSON enumeration behavior for Proxy targets is incomplete and uses 'enumerate' trap instead of 'ownKeys' trap"
114+
# Moved
87115
-
88116
test: "test-bi-proxy-object-tostring.js"
89117
knownissue: "Object class handling for Proxy objects is incomplete"
118+
# Moved
90119

91120
# Ecmascript testcases that need special options or environment to work
92121

93122
-
94123
test: "test-bi-date-local-parts-fi.js"
95124
specialoptions: "test case has been written for Finnish locale"
125+
# No longer relevant; tests run in TZ=Europe/Helsinki
96126
-
97127
test: "test-bi-date-tzoffset-basic-fi.js"
98128
specialoptions: "test case has been written for Finnish locale"
129+
# No longer relevant; tests run in TZ=Europe/Helsinki
99130
-
100131
test: "test-bi-date-tzoffset-brute-fi.js"
101132
specialoptions: "test case has been written for Finnish locale"
133+
# No longer relevant; tests run in TZ=Europe/Helsinki
102134
-
103135
test: "test-bi-duktape-json-lightfunc.js"
104136
specialoptions: "DUK_USE_LIGHTFUNC_BUILTINS"
137+
# No longer relevant
105138
-
106139
test: "test-bi-function-nonstd-caller-prop.js"
107140
specialoptions: "DUK_USE_NONSTD_FUNC_CALLER_PROPERTY"
141+
# Moved
108142
-
109143
test: "test-dev-16bit-overflows.js"
110144
specialoptions: "requires 16-bit field options"
145+
# Moved
111146
-
112147
test: "test-dev-lightfunc-accessor.js"
113148
specialoptions: "DUK_USE_LIGHTFUNC_BUILTINS"
149+
# Moved
114150
-
115151
test: "test-dev-lightfunc-finalizer.js"
116152
specialoptions: "DUK_USE_LIGHTFUNC_BUILTINS"
153+
# Moved
117154
-
118155
test: "test-dev-lightfunc.js"
119156
specialoptions: "DUK_USE_LIGHTFUNC_BUILTINS"
157+
# Moved
120158
-
121159
test: "test-dev-logicalnot-refcount.js"
122160
specialoptions: "requires refcounting"
161+
# No longer relevant (at least with current test runs)
123162
-
124163
test: "test-dev-nonstd-setget-key-argument.js"
125164
specialoptions: "should work with default options, but will break with DUK_USE_NONSTD_GETTER_KEY_ARGUMENT or DUK_USE_NONSTD_SETTER_KEY_ARGUMENT"
165+
# No longer relevant (at least with current test runs)
126166
-
127167
test: "test-bi-typedarray-nan-handling.js"
128168
specialoptions: "NaN sign is platform dependent"
169+
# No longer relevant (at least with current test runs)
129170

130171
# API testcase (tests/api/) known issues
131172

0 commit comments

Comments
 (0)