From 0c49cf76fdf05aacfad3c8b6b129680e8692dd5f Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 4 Apr 2026 11:43:46 +0200 Subject: [PATCH] Add tests for ls -al WASI fixes (timestamps, parent dir) --- static/js/wasm-terminal.test.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/static/js/wasm-terminal.test.html b/static/js/wasm-terminal.test.html index 700e583e1..e90393af1 100644 --- a/static/js/wasm-terminal.test.html +++ b/static/js/wasm-terminal.test.html @@ -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");