test: follow canonical directory root artifacts

This commit is contained in:
2026-08-13 00:59:59 +09:00
parent 22ee8f5ae6
commit 853090174b
3 changed files with 34 additions and 34 deletions

View File

@@ -17,7 +17,7 @@ package direnum_test;
//
// rootorder — a private rootok/ dir built DIRECTLY (z.ww ORDER-Z
// value()=17 vs a.ww ORDER-A leading comment + main): build exit 0,
// the binary exits 17, and the driver's <out>.sepwork/__root.unit.ww
// the binary exits 17, and the driver's <out>.sepwork/rootok.unit.ww
// stores ORDER-A strictly before ORDER-Z (byte-sorted deterministic
// source order); the two stages' units are byte-identical.
//
@@ -143,7 +143,7 @@ fn rejectpair(label: str, td: str, target: str, needle: str) void = {
fail("rootorder", strings.concat(drvs[s], " exit != 17"));
};
units[s] = testenv.readfile(strings.concat(out,
".sepwork/__root.unit.ww"));
".sepwork/rootok.unit.ww"));
let a: i32 = testenv.pos(units[s], "ORDER-A");
let z: i32 = testenv.pos(units[s], "ORDER-Z");
if (a < 0 || z < 0 || a >= z) {
@@ -153,7 +153,7 @@ fn rejectpair(label: str, td: str, target: str, needle: str) void = {
s += 1;
};
if (!testenv.same(units[0], units[1])) {
fail("rootorder", "C/WW __root.unit.ww differ");
fail("rootorder", "C/WW rootok.unit.ww differ");
};
testenv.clean(td);
};