mirror of
https://github.com/apache/nuttx.git
synced 2026-09-22 14:41:29 +08:00
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 <michallenc@seznam.cz>
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user