fix(ci): restore portable schema and clean-runtime tests
Escape DEX class-name delimiters in the owning schema so advertised patterns compile under JavaScript Unicode Sets. Keep the clean-runtime fixture preflight independent of unrelated same-user processes; the fixture inode is freshly copied and the post-launch assertion still exercises exact executable identity. Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
This commit is contained in:
@@ -102,7 +102,7 @@ const textCoverage = z.strictObject({
|
|||||||
export const dexDescriptorSchema = z
|
export const dexDescriptorSchema = z
|
||||||
.string()
|
.string()
|
||||||
.regex(
|
.regex(
|
||||||
/^\((?:\[*(?:[ZBSCIJFD]|L[^;()]+;))*\)(?:V|\[*(?:[ZBSCIJFD]|L[^;()]+;))$/u,
|
/^\((?:\[*(?:[ZBSCIJFD]|L[^;\x28\x29]+;))*\)(?:V|\[*(?:[ZBSCIJFD]|L[^;\x28\x29]+;))$/u,
|
||||||
);
|
);
|
||||||
|
|
||||||
const method = z.strictObject({
|
const method = z.strictObject({
|
||||||
|
|||||||
@@ -30,9 +30,10 @@ it
|
|||||||
await chmod(launcher, 0o700);
|
await chmod(launcher, 0o700);
|
||||||
await symlink(launcher, alternate);
|
await symlink(launcher, alternate);
|
||||||
}
|
}
|
||||||
// A rejection must come from the fixture we are about to launch. An
|
// A rejection must come from the fixture we are about to launch. The
|
||||||
// existing Xvfb would otherwise mask a broken executable-identity check.
|
// command scan excludes an existing named demo process, while the copied
|
||||||
await assertCleanLinuxHopperRuntime(alternateMode ? [launcher] : []);
|
// launcher's new inode cannot already be executing.
|
||||||
|
await assertCleanLinuxHopperRuntime([]);
|
||||||
const command = alternateMode ? alternate : process.execPath;
|
const command = alternateMode ? alternate : process.execPath;
|
||||||
const arguments_ = alternateMode ? ["30"] : ["-e", childCode];
|
const arguments_ = alternateMode ? ["30"] : ["-e", childCode];
|
||||||
const parentCode = `
|
const parentCode = `
|
||||||
|
|||||||
Reference in New Issue
Block a user