Add tests for ls -al WASI fixes (timestamps, parent dir)

This commit is contained in:
Sylvestre Ledru
2026-04-04 11:43:46 +02:00
parent a800abdb28
commit 0c49cf76fd
+11
View File
@@ -443,6 +443,17 @@ async function runTests() {
T.locale = "en-US";
// ===== ls fixes =====
section("ls WASI fixes");
const lsAl = await executeCommandLine("ls -al");
assert("ls -al does not contain 'Capabilities insufficient'",
lsAl.includes("Capabilities insufficient"), false);
assert("ls -al shows '..' entry",
lsAl.includes(".."), true);
assert("ls -al does not show 1970 date",
lsAl.includes("1970"), false);
// ===== UTF-8 / multibyte WASM tests =====
section("UTF-8 multibyte WASM");