Skip to content

All tests in repo fail if any test in repo has an extraneous /*--- sequence #161

@ben-allen

Description

@ben-allen

how to replicate:

  1. Break a test by adding an extra /*---. In this case, I've broken type-datetimefield-valid.js in intl402/DisplayNames/prototype/of.
// Copyright 2021 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
/*---
esid: sec-Intl.DisplayNames.prototype.of
description: Returns string value for valid `dateTimeField` codes
features: [Intl.DisplayNames-v2]
---*/

var displayNames = new Intl.DisplayNames(undefined, {type: 'dateTimeField'});
[...]
  1. Run any test anywhere in the repo. The following error message happens:
test262-harness --host-type=jsc --host-path=`which jsc` locales-symbol-length.js 
/usr/local/lib/node_modules/test262-harness/node_modules/test262-stream/lib/test-file.js:65
      throw new Error(`Error loading frontmatter from file ${test262File.file}\n${e.message}`);
      ^

Error: Error loading frontmatter from file test/intl402/DisplayNames/prototype/of/type-datetimefield-valid.js
end of the stream or a document separator is expected at line 3, column 5:
    esid: sec-Intl.DisplayNames.prototype.of
        ^
    at loadAttrs (/usr/local/lib/node_modules/test262-harness/node_modules/test262-stream/lib/test-file.js:65:13)
    at extractAttrs (/usr/local/lib/node_modules/test262-harness/node_modules/test262-stream/lib/test-file.js:81:17)
    at new Test262File (/usr/local/lib/node_modules/test262-harness/node_modules/test262-stream/lib/test-file.js:143:18)
    at builder (/usr/local/lib/node_modules/test262-harness/node_modules/test262-stream/lib/builder.js:16:16)
    at /usr/local/lib/node_modules/test262-harness/node_modules/test262-stream/lib/compile.js:16:9
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions