This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nuttx-ntfc.git

commit 54900191b8d61607b7d8b86e96212b9aadcbe222
Author: Marco Casaroli <[email protected]>
AuthorDate: Mon Aug 31 10:59:24 2026 +0200

    ntfc: Give the line-buffered sim test an OS to construct with.
    
    DeviceSim goes through get_os(), which refuses a configuration whose os it
    does not recognise.  The other sim tests set it on the mock and this one did
    not, so it raised before reaching what it meant to check.
    
    Signed-off-by: Marco Casaroli <[email protected]>
---
 tests/device/test_sim.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/device/test_sim.py b/tests/device/test_sim.py
index 7cbfc2c..b4397ae 100644
--- a/tests/device/test_sim.py
+++ b/tests/device/test_sim.py
@@ -119,6 +119,7 @@ def test_device_sim_line_buffered_write():
         config = mockdevice.return_value
         config.elf_path = "/tmp/nuttx-sim"
         config.line_buffered = True
+        config.os = "nuttx"
         sim = DeviceSim(config)
 
         sent = []

Reply via email to