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

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 7463052c8ef7db1bfaa907b73ed4f3b1a4cf1b14
Author: Michal Lenc <[email protected]>
AuthorDate: Tue Oct 17 13:54:04 2023 +0200

    ci: fix scanf CI test
    
    Scanf CI test was not testing the correct behavior of scanf and just
    checked whether program did not end with hard fault. This adds
    functionality check and required configuration options to run scanf
    test.
    
    Signed-off-by: Michal Lenc <[email protected]>
---
 boards/sim/sim/sim/configs/citest/defconfig          | 3 +++
 tools/ci/testrun/script/test_example/test_example.py | 3 ---
 tools/ci/testrun/script/test_os/test_os.py           | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/boards/sim/sim/sim/configs/citest/defconfig 
b/boards/sim/sim/sim/configs/citest/defconfig
index 31128e6d27..8292eb1f7c 100644
--- a/boards/sim/sim/sim/configs/citest/defconfig
+++ b/boards/sim/sim/sim/configs/citest/defconfig
@@ -50,10 +50,12 @@ CONFIG_IOEXPANDER_DUMMY=y
 CONFIG_LIBCXX=y
 CONFIG_LIBC_ENVPATH=y
 CONFIG_LIBC_EXECFUNCS=y
+CONFIG_LIBC_FLOATINGPOINT=y
 CONFIG_LIBC_LOCALE_CATALOG=y
 CONFIG_LIBC_LOCALE_GETTEXT=y
 CONFIG_LIBC_MAX_EXITFUNS=1
 CONFIG_LIBC_NUMBERED_ARGS=y
+CONFIG_LIBC_SCANSET=y
 CONFIG_NET=y
 CONFIG_NET_USRSOCK=y
 CONFIG_NSH_ARCHINIT=y
@@ -85,3 +87,4 @@ CONFIG_TESTING_GETPRIME=y
 CONFIG_TESTING_MM=y
 CONFIG_TESTING_OSTEST=y
 CONFIG_TESTING_SCANFTEST=y
+CONFIG_TESTING_SCANFTEST_FNAME="/tmp/test.txt"
diff --git a/tools/ci/testrun/script/test_example/test_example.py 
b/tools/ci/testrun/script/test_example/test_example.py
index 629c1db172..9fac6af202 100644
--- a/tools/ci/testrun/script/test_example/test_example.py
+++ b/tools/ci/testrun/script/test_example/test_example.py
@@ -16,11 +16,8 @@ def test_helloxx(p):
 
 
 def test_pipe(p):
-    p.sendCommand("umount /tmp")
     ret = p.sendCommand("pipe", "redirect_reader: Returning success", 60)
     assert ret == 0
-    p.sendCommand("\n")
-    p.sendCommand("mount -t tmpfs /tmp")
 
 
 def test_popen(p):
diff --git a/tools/ci/testrun/script/test_os/test_os.py 
b/tools/ci/testrun/script/test_os/test_os.py
index 0c7f6f2c53..6f25c59a05 100644
--- a/tools/ci/testrun/script/test_os/test_os.py
+++ b/tools/ci/testrun/script/test_os/test_os.py
@@ -28,7 +28,7 @@ def test_cxxtest(p):
 def test_scanftest(p):
     if p.board in do_not_support:
         pytest.skip("unsupported at {}".format(p.board))
-    ret = p.sendCommand("scanftest", "Test #25")
+    ret = p.sendCommand("scanftest", "FAILED: 0")
     assert ret == 0
 
 

Reply via email to