From 8ff3b907426bb299d87b8a10a2f6cd6fc9f0babb Mon Sep 17 00:00:00 2001 From: vela-mib Date: Tue, 20 Feb 2024 10:54:27 +0800 Subject: [PATCH] add open posix test cases on qemu and sim on CI Signed-off-by: vela-mib --- .../qemu-rv/rv-virt/configs/citest/defconfig | 48 +- boards/sim/sim/sim/configs/citest/defconfig | 42 +- tools/ci/cirun.sh | 14 +- tools/ci/testrun/pytest.ini | 1 + .../script/test_example/test_example.py | 4 +- .../script/test_open_posix/__init__.py | 2 + .../script/test_open_posix/test_openposix_.py | 11184 ++++++++++++++++ tools/ci/testrun/script/test_os/test_os.py | 8 +- tools/ci/testrun/utils/common.py | 194 +- tools/ci/testrun/utils/data_model.py | 235 + 10 files changed, 11684 insertions(+), 48 deletions(-) create mode 100644 tools/ci/testrun/script/test_open_posix/__init__.py create mode 100644 tools/ci/testrun/script/test_open_posix/test_openposix_.py create mode 100644 tools/ci/testrun/utils/data_model.py diff --git a/boards/risc-v/qemu-rv/rv-virt/configs/citest/defconfig b/boards/risc-v/qemu-rv/rv-virt/configs/citest/defconfig index 946b2bf7c4..f11f2b9725 100644 --- a/boards/risc-v/qemu-rv/rv-virt/configs/citest/defconfig +++ b/boards/risc-v/qemu-rv/rv-virt/configs/citest/defconfig @@ -16,6 +16,7 @@ CONFIG_16550_UART0_CLOCK=3686400 CONFIG_16550_UART0_IRQ=37 CONFIG_16550_UART0_SERIAL_CONSOLE=y CONFIG_16550_UART=y +CONFIG_ALLOW_MIT_COMPONENTS=y CONFIG_ARCH="risc-v" CONFIG_ARCH_BOARD="rv-virt" CONFIG_ARCH_BOARD_QEMU_RV_VIRT=y @@ -27,33 +28,58 @@ CONFIG_ARCH_CHIP_QEMU_RV_ISA_C=y CONFIG_ARCH_CHIP_QEMU_RV_ISA_M=y CONFIG_ARCH_INTERRUPTSTACK=2048 CONFIG_ARCH_RISCV=y +CONFIG_ARCH_SETJMP_H=y CONFIG_ARCH_STACKDUMP=y +CONFIG_BOARDCTL_ROMDISK=y CONFIG_BOARD_LOOPSPERMSEC=6366 CONFIG_BUILTIN=y +CONFIG_CANCELLATION_POINTS=y CONFIG_DEBUG_ASSERTIONS=y CONFIG_DEBUG_FEATURES=y CONFIG_DEBUG_FULLOPT=y CONFIG_DEBUG_SYMBOLS=y CONFIG_DEV_ZERO=y CONFIG_ELF=y +CONFIG_ETC_ROMFS=y CONFIG_EXAMPLES_HELLO=y CONFIG_EXAMPLES_HELLOXX=y CONFIG_EXAMPLES_PIPE=y CONFIG_EXAMPLES_POPEN=y +CONFIG_EXAMPLES_ROMFS=y CONFIG_EXAMPLES_USRSOCKTEST=y +CONFIG_FAT_LFN=y +CONFIG_FS_AIO=y +CONFIG_FS_FAT=y CONFIG_FS_HOSTFS=y +CONFIG_FS_NAMED_SEMAPHORES=y CONFIG_FS_PROCFS=y +CONFIG_FS_ROMFS=y +CONFIG_FS_SHMFS=y +CONFIG_FS_TMPFS=y CONFIG_HAVE_CXX=y CONFIG_IDLETHREAD_STACKSIZE=2048 CONFIG_INIT_ENTRYPOINT="nsh_main" CONFIG_INTELHEX_BINARY=y +CONFIG_IOB_NBUFFERS=128 +CONFIG_IOB_NCHAINS=4 +CONFIG_LIBCXX=y +CONFIG_LIBCXXABI=y CONFIG_LIBC_ENVPATH=y CONFIG_LIBC_EXECFUNCS=y +CONFIG_LIBC_LOCALE_CATALOG=y +CONFIG_LIBC_LOCALTIME=y +CONFIG_LIBC_MAX_EXITFUNS=32 +CONFIG_LIBC_MEMFD_ERROR=y CONFIG_LIBC_PERROR_STDOUT=y CONFIG_LIBC_STRERROR=y +CONFIG_LIBM=y +CONFIG_MM_IOB=y +CONFIG_MQ_MAXMSGSIZE=128 CONFIG_NET=y CONFIG_NETDEV_LATEINIT=y CONFIG_NETUTILS_NETINIT=y +CONFIG_NET_ICMP=y +CONFIG_NET_LOCAL=y CONFIG_NET_USRSOCK=y CONFIG_NFILE_DESCRIPTORS_PER_BLOCK=6 CONFIG_NSH_ARCHINIT=y @@ -63,21 +89,41 @@ CONFIG_NSH_READLINE=y CONFIG_PATH_INITIAL="/system/bin" CONFIG_PREALLOC_TIMERS=0 CONFIG_PSEUDOFS_SOFTLINKS=y +CONFIG_PTHREAD_CLEANUP_STACKSIZE=4 +CONFIG_PTHREAD_SPINLOCKS=y +CONFIG_PTHREAD_STACK_DEFAULT=8192 +CONFIG_PTHREAD_STACK_MIN=8192 CONFIG_RAM_SIZE=33554432 CONFIG_RAM_START=0x80000000 CONFIG_READLINE_CMD_HISTORY=y CONFIG_RISCV_SEMIHOSTING_HOSTFS=y -CONFIG_RR_INTERVAL=200 +CONFIG_RR_INTERVAL=10 +CONFIG_SCHED_CHILD_STATUS=y +CONFIG_SCHED_HAVE_PARENT=y CONFIG_SCHED_HPWORK=y +CONFIG_SCHED_LPNTHREADS=1 CONFIG_SCHED_LPWORK=y +CONFIG_SCHED_USER_IDENTITY=y CONFIG_SERIAL_UART_ARCH_MMIO=y +CONFIG_SIG_DEFAULT=y +CONFIG_SIG_EVTHREAD=y +CONFIG_SPINLOCK=y CONFIG_STACK_COLORATION=y CONFIG_START_MONTH=12 CONFIG_START_YEAR=2021 CONFIG_SYMTAB_ORDEREDBYNAME=y CONFIG_SYSTEM_NSH=y CONFIG_SYSTEM_POPEN=y +CONFIG_TESTING_CMOCKA=y +CONFIG_TESTING_CXXTEST=y +CONFIG_TESTING_FMEMOPEN_TEST=y +CONFIG_TESTING_FOPENCOOKIE_TEST=y +CONFIG_TESTING_FSTEST=y CONFIG_TESTING_GETPRIME=y +CONFIG_TESTING_LTP=y CONFIG_TESTING_MM=y +CONFIG_TESTING_OPEN_MEMSTREAM=y CONFIG_TESTING_OSTEST=y +CONFIG_TESTING_SCANFTEST=y +CONFIG_TLS_NELEM=8 CONFIG_USEC_PER_TICK=1000 diff --git a/boards/sim/sim/sim/configs/citest/defconfig b/boards/sim/sim/sim/configs/citest/defconfig index d77325fbb1..9573952c04 100644 --- a/boards/sim/sim/sim/configs/citest/defconfig +++ b/boards/sim/sim/sim/configs/citest/defconfig @@ -8,6 +8,7 @@ # CONFIG_NET_ARP is not set # CONFIG_NSH_CMDOPT_HEXDUMP is not set # CONFIG_NSH_NETINIT is not set +CONFIG_ALLOW_MIT_COMPONENTS=y CONFIG_ALLSYMS=y CONFIG_ARCH="sim" CONFIG_ARCH_BOARD="sim" @@ -17,9 +18,11 @@ CONFIG_ARCH_MATH_H=y CONFIG_ARCH_SIM=y CONFIG_BOARDCTL_APP_SYMTAB=y CONFIG_BOARDCTL_POWEROFF=y +CONFIG_BOARDCTL_ROMDISK=y CONFIG_BOARD_LOOPSPERMSEC=0 CONFIG_BOOT_RUNFROMEXTSRAM=y CONFIG_BUILTIN=y +CONFIG_CANCELLATION_POINTS=y CONFIG_DEBUG_ASSERTIONS=y CONFIG_DEBUG_FEATURES=y CONFIG_DEBUG_SYMBOLS=y @@ -28,52 +31,82 @@ CONFIG_DEV_LOOP=y CONFIG_DEV_ZERO=y CONFIG_ETC_FATDEVNO=2 CONFIG_ETC_ROMFS=y -CONFIG_ETC_ROMFSDEVNO=1 CONFIG_EXAMPLES_GPIO=y CONFIG_EXAMPLES_HELLO=y CONFIG_EXAMPLES_HELLOXX=y CONFIG_EXAMPLES_PIPE=y CONFIG_EXAMPLES_POPEN=y +CONFIG_EXAMPLES_ROMFS=y CONFIG_EXAMPLES_USRSOCKTEST=y CONFIG_FAT_LCNAMES=y CONFIG_FAT_LFN=y +CONFIG_FRAME_POINTER=y CONFIG_FSUTILS_PASSWD=y CONFIG_FSUTILS_PASSWD_READONLY=y +CONFIG_FS_AIO=y CONFIG_FS_BINFS=y CONFIG_FS_FAT=y +CONFIG_FS_NAMED_SEMAPHORES=y CONFIG_FS_PROCFS=y CONFIG_FS_RAMMAP=y CONFIG_FS_ROMFS=y +CONFIG_FS_SHMFS=y +CONFIG_FS_TMPFS=y CONFIG_GPIO_LOWER_HALF=y CONFIG_HAVE_CXX=y CONFIG_IDLETHREAD_STACKSIZE=4096 CONFIG_INIT_ENTRYPOINT="nsh_main" +CONFIG_IOB_NBUFFERS=128 +CONFIG_IOB_NCHAINS=4 CONFIG_IOEXPANDER=y CONFIG_IOEXPANDER_DUMMY=y CONFIG_LIBCXX=y +CONFIG_LIBC_DLFCN=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_LOCALTIME=y +CONFIG_LIBC_MAX_EXITFUNS=32 +CONFIG_LIBC_MEMFD_ERROR=y +CONFIG_LIBC_NETDB=y CONFIG_LIBC_NUMBERED_ARGS=y CONFIG_LIBC_SCANSET=y +CONFIG_LIBUV=y +CONFIG_LIBUV_UTILS_TEST=y +CONFIG_MM_IOB=y +CONFIG_MQ_MAXMSGSIZE=128 CONFIG_NET=y +CONFIG_NETDEV_HPWORK_THREAD=y +CONFIG_NETDEV_LATEINIT=y +CONFIG_NET_ICMP=y +CONFIG_NET_LOCAL=y CONFIG_NET_USRSOCK=y CONFIG_NSH_ARCHINIT=y CONFIG_NSH_BUILTIN_APPS=y -CONFIG_NSH_FILE_APPS=y CONFIG_NSH_MOTD=y CONFIG_NSH_MOTD_STRING="MOTD: username=admin password=Administrator" CONFIG_NSH_READLINE=y CONFIG_PATH_INITIAL="/bin" CONFIG_PSEUDOFS_ATTRIBUTES=y CONFIG_PSEUDOFS_SOFTLINKS=y +CONFIG_PTHREAD_CLEANUP_STACKSIZE=4 +CONFIG_PTHREAD_SPINLOCKS=y +CONFIG_PTHREAD_STACK_DEFAULT=8192 +CONFIG_PTHREAD_STACK_MIN=8192 CONFIG_READLINE_TABCOMPLETION=y +CONFIG_RR_INTERVAL=10 CONFIG_SCHED_BACKTRACE=y +CONFIG_SCHED_CHILD_STATUS=y CONFIG_SCHED_HAVE_PARENT=y +CONFIG_SCHED_LPNTHREADS=1 +CONFIG_SCHED_LPWORK=y +CONFIG_SCHED_USER_IDENTITY=y +CONFIG_SIG_DEFAULT=y +CONFIG_SIG_EVTHREAD=y CONFIG_SIM_WALLTIME_SIGNAL=y +CONFIG_SPINLOCK=y CONFIG_START_MONTH=6 CONFIG_START_YEAR=2008 CONFIG_SYSTEM_DUMPSTACK=y @@ -85,8 +118,11 @@ CONFIG_TESTING_FOPENCOOKIE_TEST=y CONFIG_TESTING_FSTEST=y CONFIG_TESTING_FSTEST_MOUNTPT="/tmp" CONFIG_TESTING_GETPRIME=y +CONFIG_TESTING_LTP=y CONFIG_TESTING_MM=y CONFIG_TESTING_OPEN_MEMSTREAM=y CONFIG_TESTING_OSTEST=y CONFIG_TESTING_SCANFTEST=y CONFIG_TESTING_SCANFTEST_FNAME="/tmp/test.txt" +CONFIG_TLS_NELEM=16 +CONFIG_TLS_TASK_NELEM=8 diff --git a/tools/ci/cirun.sh b/tools/ci/cirun.sh index 7073de5a12..856b6cd6f1 100755 --- a/tools/ci/cirun.sh +++ b/tools/ci/cirun.sh @@ -18,10 +18,15 @@ if [ "$BOARD" == "sim" ]; then mark="common or ${BOARD}" else if [ "${config:$((-2))}" == "64" ]; then - BOARD="${BOARD}64" + BOARD="${BOARD}64" + fi + if [ "$BOARD" == "rv-virt" ]; then + target="qemu" + mark="qemu or rv_virt" + else + target="qemu" + mark=$target fi - target="qemu" - mark=$target fi core=$target @@ -35,6 +40,9 @@ ret="$?" find ${nuttx}/tools/ci/testrun -name '__pycache__' |xargs rm -rf find ${nuttx}/tools/ci/testrun -name '.pytest_cache' |xargs rm -rf rm -rf ${logs} +rm -rf ${nuttx}/../apps/testing/ltp/ltp/ +rm -f ${nuttx}/../apps/testing/cmocka/cmocka.zip + echo $ret exit $ret diff --git a/tools/ci/testrun/pytest.ini b/tools/ci/testrun/pytest.ini index 6452c38067..11b9bb8ff3 100644 --- a/tools/ci/testrun/pytest.ini +++ b/tools/ci/testrun/pytest.ini @@ -14,4 +14,5 @@ markers = common : 'marks tests as common' sim : 'marks tests as simulator' qemu : 'marks tests as qemu' + rv_virt : 'marks tests as rv-virt' disable_autouse : 'disable autouse' diff --git a/tools/ci/testrun/script/test_example/test_example.py b/tools/ci/testrun/script/test_example/test_example.py index 9fac6af202..4ba779c662 100644 --- a/tools/ci/testrun/script/test_example/test_example.py +++ b/tools/ci/testrun/script/test_example/test_example.py @@ -16,7 +16,7 @@ def test_helloxx(p): def test_pipe(p): - ret = p.sendCommand("pipe", "redirect_reader: Returning success", 60) + ret = p.sendCommand("pipe", "redirect_reader: Returning success", timeout=60) assert ret == 0 @@ -26,5 +26,5 @@ def test_popen(p): def test_usrsocktest(p): - ret = p.sendCommand("usrsocktest", "FAILED:0", 60) + ret = p.sendCommand("usrsocktest", "FAILED:0", timeout=60) assert ret == 0 diff --git a/tools/ci/testrun/script/test_open_posix/__init__.py b/tools/ci/testrun/script/test_open_posix/__init__.py new file mode 100644 index 0000000000..f18cc000eb --- /dev/null +++ b/tools/ci/testrun/script/test_open_posix/__init__.py @@ -0,0 +1,2 @@ +#!/usr/bin/python3 +# encoding: utf-8 diff --git a/tools/ci/testrun/script/test_open_posix/test_openposix_.py b/tools/ci/testrun/script/test_open_posix/test_openposix_.py new file mode 100644 index 0000000000..d192afdcd0 --- /dev/null +++ b/tools/ci/testrun/script/test_open_posix/test_openposix_.py @@ -0,0 +1,11184 @@ +#!/usr/bin/python3 +# encoding: utf-8 +import pytest + +pytestmark = [pytest.mark.sim, pytest.mark.rv_virt] + + +def test_ltp_interfaces_mq_send_4_2(p): + ret = p.sendCommand( + "ltp_interfaces_mq_send_4_2", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigprocmask_12_1(p): +# ret = p.sendCommand( +# "ltp_interfaces_sigprocmask_12_1", +# ["PASSED", "passed", "Passed", "PASS"], +# timeout=10, +# ) +# retID = p.sendCommand("echo $?", "0", timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_timedwrlock_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_timedwrlock_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_9_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_9_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=30, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_condattr_destroy_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_condattr_destroy_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_cancel_2_2(p): + ret = p.sendCommand( + "ltp_interfaces_aio_cancel_2_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_18(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_18", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_3_23(p): +# ret = p.sendCommand('ltp_interfaces_sigaction_3_23', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_41(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_41", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigismember_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigismember_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_time_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_time_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_unlock_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_unlock_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_37_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_37_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_signal_7_1(p): + ret = p.sendCommand("ltp_interfaces_signal_7_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_unlink_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_unlink_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_open_11_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_11_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_getvalue_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_getvalue_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_getdetachstate_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_getdetachstate_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_97(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_97", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_receive_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_receive_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mmap_6_4(p): + ret = p.sendCommand( + "ltp_interfaces_mmap_6_4", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_strlen_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_strlen_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_getcpuclockid_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_getcpuclockid_1_1", ["new thread"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_detach_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_detach_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_tryrdlock_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_tryrdlock_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_16(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_16", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sem_open_6_1(p): +# ret = p.sendCommand('ltp_interfaces_sem_open_6_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_getschedparam_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_getschedparam_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_wait_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_sem_wait_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_init_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_init_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_104(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_104", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_open_27_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_27_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_22(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_22", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_15(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_15", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_strcpy_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_strcpy_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_19(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_19", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_join_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_join_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_settime_9_1(p): + ret = p.sendCommand( + "ltp_interfaces_timer_settime_9_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_open_12_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_12_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_35(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_35", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_23(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_23", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_4_84(p): +# ret = p.sendCommand( +# "ltp_interfaces_sigaction_4_84", +# ["PASSED", "passed", "Passed", "PASS"], +# timeout=10, +# ) +# retID = p.sendCommand("echo $?", "0", timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sched_setparam_25_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_setparam_25_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigset_1_1(p): + ret = p.sendCommand("ltp_interfaces_sigset_1_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_gettime_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_timer_gettime_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_12(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_12", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_settime_17_2(p): + ret = p.sendCommand( + "ltp_interfaces_clock_settime_17_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sched_setscheduler_19_3(p): +# ret = p.sendCommand('ltp_interfaces_sched_setscheduler_19_3', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigqueue_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigqueue_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_timer_gettime_speculative_6_1(p): + ret = p.sendCommand( + "ltp_timer_gettime_speculative_6_1", ["errno==EINVAL"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_setschedprio_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_setschedprio_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_destroy_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_destroy_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_69(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_69", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mmap_21_1(p): + ret = p.sendCommand( + "ltp_interfaces_mmap_21_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_61(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_61", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_timer_settime_speculative_12_3(p): + ret = p.sendCommand( + "ltp_timer_settime_speculative_12_3", ["errno==EINVAL"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_init_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_init_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_102(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_102", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_27(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_27", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_read_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_read_7_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigset_2_1(p): + ret = p.sendCommand("ltp_interfaces_sigset_2_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_7(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_7", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_send_4_3(p): + ret = p.sendCommand( + "ltp_interfaces_mq_send_4_3", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setschedpolicy_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setschedpolicy_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_close_3_2(p): + ret = p.sendCommand( + "ltp_interfaces_mq_close_3_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_nanosleep_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_nanosleep_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_93(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_93", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_getparam_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_getparam_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_receive_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_receive_8_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutex_destroy_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutex_destroy_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setinheritsched_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setinheritsched_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_rdlock_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_rdlock_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=30, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setscope_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setscope_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_fsync_14_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_fsync_14_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_18_8(p): +# ret = p.sendCommand('ltp_interfaces_sigaction_18_8', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_raise_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_raise_2_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_51(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_51", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_munlock_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_munlock_7_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_setcancelstate_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_setcancelstate_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_8(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_8", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_55(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_55", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_75(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_75", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_sigmask_6_1(p): + ret = p.sendCommand("ltp_interfaces_pthread_sigmask_6_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_5(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_5", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutex_destroy_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutex_destroy_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_4_85(p): +# ret = p.sendCommand('ltp_interfaces_sigaction_4_85', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_mq_open_7_3(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_7_3", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_77(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_77", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_lio_listio_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_lio_listio_8_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_13_14(p): +# ret = p.sendCommand('ltp_interfaces_sigaction_13_14', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_kill_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_kill_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_25(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_25", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_clock_settime_speculative_4_4(p): + ret = p.sendCommand( + "ltp_clock_settime_speculative_4_4", + ["Implementation does repeat signals on clock reset", "clock reset"], + timeout=30, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_nanosleep_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_nanosleep_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_11_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_11_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_open_18_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_18_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_21(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_21", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_29_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_29_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_timer_settime_speculative_12_2(p): + ret = p.sendCommand( + "ltp_timer_settime_speculative_12_2", ["errno==EINVAL"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_12(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_12", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_open_15_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_open_15_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_8(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_8", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigset_4_1(p): + ret = p.sendCommand("ltp_interfaces_sigset_4_1", ["Inside handler"], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_7(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_7", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_gettime_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_gettime_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_7(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_7", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_settime_3_3(p): + ret = p.sendCommand( + "ltp_interfaces_timer_settime_3_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_23(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_23", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_3(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigignore_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigignore_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_53(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_53", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_barrierattr_setpshared_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_barrierattr_setpshared_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_barrier_wait_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_barrier_wait_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_17(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_17", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_open_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_sem_open_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigprocmask_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigprocmask_7_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_detach_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_detach_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_9(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_9", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_13(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_13", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_spin_trylock_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_spin_trylock_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigpause_1_1(p): + pytest.skip("unsupported") + ret = p.sendCommand( + "ltp_interfaces_sigpause_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_15_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_15_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_21(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_21", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_79(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_79", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigprocmask_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigprocmask_8_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sched_setscheduler_19_2(p): +# ret = p.sendCommand('ltp_interfaces_sched_setscheduler_19_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_init_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_init_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_4(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_definitions_errno_h_4_1(p): + ret = p.sendCommand("ltp_definitions_errno_h_4_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_init_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_init_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaddset_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_sigaddset_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_fsync_8_3(p): + ret = p.sendCommand( + "ltp_interfaces_aio_fsync_8_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_13(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_13", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_detach_4_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_detach_4_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigwait_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigwait_4_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_21(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_21", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_destroy_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_destroy_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_settime_8_2(p): + ret = p.sendCommand( + "ltp_interfaces_timer_settime_8_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_19(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_19", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_22(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_22", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_unlink_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_unlink_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaddset_1_3(p): + ret = p.sendCommand( + "ltp_interfaces_sigaddset_1_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_71(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_71", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setinheritsched_2_4(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setinheritsched_2_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_50(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_50", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setschedpolicy_1_3(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setschedpolicy_1_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_14_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_14_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_20(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_20", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_3(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_init_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_init_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_16(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_16", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_settime_5_3(p): + ret = p.sendCommand( + "ltp_interfaces_timer_settime_5_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=200, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_16(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_16", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_timedwrlock_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_timedwrlock_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedreceive_11_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedreceive_11_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_init_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_init_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_4(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigpending_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigpending_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigismember_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigismember_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_wait_11_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_wait_11_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlockattr_destroy_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlockattr_destroy_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_setpshared_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_setpshared_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_19(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_19", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_detach_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_detach_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_lio_listio_10_1(p): + ret = p.sendCommand( + "ltp_interfaces_lio_listio_10_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_sigmask_8_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_sigmask_8_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_write_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_write_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_99(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_99", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_asctime_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_asctime_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_mutexattr_gettype_1_4(p): +# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_gettype_1_4', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_19(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_19", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigfillset_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigfillset_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_settime_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_timer_settime_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=30, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_write_9_2(p): + ret = p.sendCommand( + "ltp_interfaces_aio_write_9_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_cancel_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_cancel_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_post_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_sem_post_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigtimedwait_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigtimedwait_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_barrierattr_init_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_barrierattr_init_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_9(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_9", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_send_14_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_send_14_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_kill_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_kill_2_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_60(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_60", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_get_priority_max_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_get_priority_max_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_11(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_11", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_mq_getattr_speculative_7_1(p): + ret = p.sendCommand( + "ltp_mq_getattr_speculative_7_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_setattr_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_setattr_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_kill_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_kill_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_create_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_create_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigwait_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigwait_6_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_behavior_WIFEXITED_1_2(p): + ret = p.sendCommand( + "ltp_behavior_WIFEXITED_1_2", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_write_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_write_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_settime_19_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_settime_19_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_return_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_return_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_definitions_signal_h_19_1(p): + ret = p.sendCommand("ltp_definitions_signal_h_19_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_rdlock_2_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_rdlock_2_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=30, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_read_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_read_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_26(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_26", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_49(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_49", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_40(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_40", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigpause_2_1(p): + pytest.skip("unsupported") + ret = p.sendCommand( + "ltp_interfaces_sigpause_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_4_3(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_4_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigfillset_2_1(p): + ret = p.sendCommand("ltp_interfaces_sigfillset_2_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mmap_24_1(p): + ret = p.sendCommand( + "ltp_interfaces_mmap_24_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigqueue_2_2(p): + ret = p.sendCommand( + "ltp_interfaces_sigqueue_2_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigprocmask_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigprocmask_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedreceive_13_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedreceive_13_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_notify_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_notify_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_9(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_9", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_fsync_12_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_fsync_12_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_14(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_14", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mmap_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_mmap_1_2", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_key_delete_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_key_delete_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_2(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_10(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_10", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigdelset_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigdelset_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_getparam_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_getparam_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_19(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_19", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_getres_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_getres_8_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_open_20_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_20_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_23(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_23", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_13(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_13", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_6(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_6", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_close_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_close_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_unlink_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_unlink_7_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_fsync_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_fsync_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_sigmask_9_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_sigmask_9_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_cleanup_pop_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_cleanup_pop_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_self_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_self_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_mutexattr_gettype_1_2(p): +# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_gettype_1_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_12(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_12", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_getpshared_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_getpshared_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_timer_settime_speculative_12_1(p): + ret = p.sendCommand( + "ltp_timer_settime_speculative_12_1", ["errno==EINVAL"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_aio_error_3_1(p): +# ret = p.sendCommand('ltp_interfaces_aio_error_3_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sched_setscheduler_19_5(p): + ret = p.sendCommand( + "ltp_interfaces_sched_setscheduler_19_5", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_error_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_error_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_82(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_82", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_3(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_12_33(p): +# ret = p.sendCommand('ltp_interfaces_sigaction_12_33', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_timedwrlock_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_timedwrlock_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_15(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_15", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_26(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_26", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_raise_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_raise_6_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_8_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_72(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_72", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_send_10_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_send_10_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigwaitinfo_8_1(p): + ret = p.sendCommand("ltp_interfaces_sigwaitinfo_8_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_timedrdlock_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_timedrdlock_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_17(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_17", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_read_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_read_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_ctime_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_ctime_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_receive_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_receive_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_18(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_18", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_timedwait_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_timedwait_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigwaitinfo_9_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigwaitinfo_9_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_write_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_write_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_6(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_6", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mmap_32_1(p): + ret = p.sendCommand( + "ltp_interfaces_mmap_32_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_16(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_16", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_24(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_24", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_11(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_11", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigqueue_8_1(p): + ret = p.sendCommand("ltp_interfaces_sigqueue_8_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_39_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_39_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_24(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_24", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_7_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_setparam_22_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_setparam_22_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_gettime_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_gettime_8_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_47(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_47", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_23(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_23", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_11(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_11", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_notify_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_notify_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_yield_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_yield_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_killpg_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_killpg_8_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_barrierattr_init_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_barrierattr_init_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_init_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_init_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_10(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_10", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_open_15_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_15_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_setscheduler_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_setscheduler_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_80(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_80", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_fsync_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_fsync_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaddset_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaddset_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigpause_4_1(p): + pytest.skip("unsupported") + ret = p.sendCommand( + "ltp_interfaces_sigpause_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_19(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_19", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_lio_listio_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_lio_listio_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_aio_write_2_1(p): +# ret = p.sendCommand('ltp_interfaces_aio_write_2_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_setprotocol_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_setprotocol_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_attr_setstack_4_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_attr_setstack_4_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigpending_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_sigpending_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_38_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_38_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_spin_init_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_spin_init_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigemptyset_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigemptyset_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_unlink_4_2(p): + ret = p.sendCommand( + "ltp_interfaces_sem_unlink_4_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_send_11_2(p): + ret = p.sendCommand( + "ltp_interfaces_mq_send_11_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_sigmask_4_1(p): +# ret = p.sendCommand("ltp_interfaces_pthread_sigmask_4_1", [""], timeout=10) +# retID = p.sendCommand("echo $?", "0", timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_48(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_48", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigprocmask_6_1(p): +# ret = p.sendCommand('ltp_interfaces_sigprocmask_6_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_21(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_21", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_13_7(p): +# ret = p.sendCommand('ltp_interfaces_sigaction_13_7', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_gmtime_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_gmtime_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_destroy_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_destroy_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_20(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_20", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_4(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_lio_listio_9_1(p): + ret = p.sendCommand( + "ltp_interfaces_lio_listio_9_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigtimedwait_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigtimedwait_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_59(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_59", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_11(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_11", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_fsync_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_fsync_8_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_post_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_post_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mmap_6_6(p): + ret = p.sendCommand( + "ltp_interfaces_mmap_6_6", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_barrierattr_setpshared_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_barrierattr_setpshared_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mmap_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_mmap_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_functional_semaphores_sem_philosopher(p): +# ret = p.sendCommand('ltp_functional_semaphores_sem_philosopher', ['ap>'], timeout=70) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + +# def test_ltp_definitions_aio_h_2_1(p): +# ret = p.sendCommand('ltp_definitions_aio_h_2_1', [''], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sched_get_priority_max_1_4(p): + ret = p.sendCommand( + "ltp_interfaces_sched_get_priority_max_1_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_join_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_join_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_25(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_25", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_getvalue_2_2(p): + ret = p.sendCommand( + "ltp_interfaces_sem_getvalue_2_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_3(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_kill_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_kill_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sighold_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sighold_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_sigmask_14_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_sigmask_14_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_settime_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_settime_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_timedwrlock_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_timedwrlock_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=30, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_init_2_2(p): + ret = p.sendCommand( + "ltp_interfaces_sem_init_2_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigtimedwait_4_1(p): +# ret = p.sendCommand('ltp_interfaces_sigtimedwait_4_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sem_wait_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_wait_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_25(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_25", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_notify_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_notify_8_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_5(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_5", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_26(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_26", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_open_13_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_13_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_send_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_send_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_init_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_init_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_2(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigignore_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigignore_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sighold_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sighold_2_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_22(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_22", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_26(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_26", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_gettime_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_timer_gettime_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_29(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_29", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_condattr_getpshared_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_condattr_getpshared_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_26(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_26", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_5(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_5", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_raise_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_raise_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_28_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_28_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_15(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_15", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_3(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_raise_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_raise_7_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_cancel_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_cancel_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_mutexattr_settype_3_3(p): +# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_settype_3_3', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_cancel_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_cancel_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutex_trylock_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutex_trylock_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_unlink_9_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_unlink_9_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigdelset_1_4(p): + ret = p.sendCommand( + "ltp_interfaces_sigdelset_1_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_return_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_return_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_14(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_14", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_21_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_21_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_12(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_12", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_getres_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_getres_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_settime_20_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_settime_20_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_timer_settime_8_3(p): +# ret = p.sendCommand('ltp_interfaces_timer_settime_8_3', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_killpg_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_killpg_2_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_getvalue_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_getvalue_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_close_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_close_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigrelse_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigrelse_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_open_9_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_9_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_20(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_20", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_81(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_81", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_open_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_8_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_sigmask_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_sigmask_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_close_3_2(p): + ret = p.sendCommand( + "ltp_interfaces_sem_close_3_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_gmtime_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_gmtime_2_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigqueue_11_1(p): +# ret = p.sendCommand('ltp_interfaces_sigqueue_11_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_timer_getoverrun_speculative_6_2(p): + ret = p.sendCommand( + "ltp_timer_getoverrun_speculative_6_2", ["errno=EINVAL"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_20(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_20", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedreceive_15_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedreceive_15_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_5(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_5", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_setparam_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_setparam_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_4_2(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_4_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_getcpuclockid_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_getcpuclockid_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_26(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_26", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_create_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_create_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_56(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_56", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_init_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_init_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_functional_semaphores_sem_conpro(p): + ret = p.sendCommand( + "ltp_functional_semaphores_sem_conpro", ["taken 900"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_88(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_88", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigqueue_6_1(p): + ret = p.sendCommand("ltp_interfaces_sigqueue_6_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_3(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_9(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_9", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_setspecific_1_2(p): +# ret = p.sendCommand('ltp_interfaces_pthread_setspecific_1_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_3(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_open_10_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_open_10_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigdelset_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigdelset_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_18_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_18_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_28(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_28", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_detach_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_detach_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_24(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_24", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutex_init_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutex_init_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_condattr_setpshared_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_condattr_setpshared_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_init_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_init_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_notify_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_notify_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_nanosleep_10000_1(p): + ret = p.sendCommand( + "ltp_interfaces_nanosleep_10000_1", ["All tests PASSED"], timeout=30 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigwait_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigwait_2_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_condattr_destroy_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_condattr_destroy_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_gettime_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_gettime_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_setattr_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_setattr_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_getvalue_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_getvalue_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_create_12_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_create_12_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_cond_init_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_cond_init_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_9_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_9_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_unlink_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_unlink_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_20(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_20", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_cond_init_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_cond_init_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_getpshared_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_getpshared_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_post_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_post_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_20_3(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_20_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigset_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigset_7_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_condattr_getclock_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_condattr_getclock_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_mq_unlink_1_1(p): +# ret = p.sendCommand('ltp_interfaces_mq_unlink_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=5) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sched_getscheduler_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_getscheduler_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_destroy_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_destroy_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_nanosleep_11_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_nanosleep_11_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_join_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_join_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_28_2(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_28_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_26_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_26_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mlock_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_mlock_5_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_localtime_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_localtime_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_cond_init_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_cond_init_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_2(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_21(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_21", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_getres_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_getres_7_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_cleanup_push_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_cleanup_push_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_11(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_11", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_21(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_21", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_6(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_6", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_open_2_2(p): + ret = p.sendCommand( + "ltp_interfaces_sem_open_2_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_destroy_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_destroy_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_7(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_7", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sched_getparam_3_1(p): +# ret = p.sendCommand('ltp_interfaces_sched_getparam_3_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaddset_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaddset_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mmap_19_1(p): + ret = p.sendCommand( + "ltp_interfaces_mmap_19_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_24(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_24", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_gettime_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_gettime_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigrelse_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigrelse_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_timedwait_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_timedwait_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutex_timedlock_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutex_timedlock_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_6(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_6", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_pthread_key_create_speculative_5_1(p): + ret = p.sendCommand( + "ltp_pthread_key_create_speculative_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_10(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_10", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_settime_9_2(p): + ret = p.sendCommand( + "ltp_interfaces_timer_settime_9_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=30, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_8(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_8", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_setcancelstate_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_setcancelstate_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_lio_listio_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_lio_listio_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_6(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_6", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_receive_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_receive_7_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_attr_setinheritsched_2_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_attr_setinheritsched_2_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_11(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_11", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_write_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_write_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_18(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_18", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_92(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_92", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_fsync_8_2(p): + ret = p.sendCommand( + "ltp_interfaces_aio_fsync_8_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_open_19_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_19_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_mutexattr_settype_7_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_settype_7_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_4(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_gettype_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_gettype_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_83(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_83", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigtimedwait_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigtimedwait_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_receive_10_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_receive_10_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_8_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_delete_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_timer_delete_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigprocmask_10_1(p): +# ret = p.sendCommand('ltp_interfaces_sigprocmask_10_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_9(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_9", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_cancel_9_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_cancel_9_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_39_2(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_39_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_10(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_10", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_spin_destroy_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_spin_destroy_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_open_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigprocmask_17_1(p): +# ret = p.sendCommand( +# "ltp_interfaces_sigprocmask_17_1", +# ["PASSED", "passed", "Passed", "PASS"], +# timeout=10, +# ) +# retID = p.sendCommand("echo $?", "0", timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_11(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_11", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_mutex_init_4_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_mutex_init_4_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaltstack_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaltstack_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_18(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_18", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_15(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_15", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_4(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_send_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_send_3_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_20_2(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_20_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_22_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_22_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_wrlock_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_wrlock_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_timedrdlock_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_timedrdlock_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_create_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_create_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigwaitinfo_2_1(p): + ret = p.sendCommand("ltp_interfaces_sigwaitinfo_2_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_44(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_44", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_clock_settime_17_1(p): +# ret = p.sendCommand('ltp_interfaces_clock_settime_17_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_sched_getparam_speculative_7_1(p): + ret = p.sendCommand("ltp_sched_getparam_speculative_7_1", ["NULL"], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_24(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_24", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_sigmask_8_3(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_sigmask_8_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_2(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_18(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_18", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_nanosleep_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_nanosleep_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_condattr_getpshared_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_condattr_getpshared_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_kill_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_kill_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setinheritsched_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setinheritsched_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedreceive_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedreceive_7_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_13(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_13", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_mq_timedreceive_speculative_10_2(p): + ret = p.sendCommand( + "ltp_mq_timedreceive_speculative_10_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_28_15(p): +# ret = p.sendCommand('ltp_interfaces_sigaction_28_15', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_30(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_30", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigset_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigset_6_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_signal_3_1(p): + ret = p.sendCommand("ltp_interfaces_signal_3_1", ["Inside handler"], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_23(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_23", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_17(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_17", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_21(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_21", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_close_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_close_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_9(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_9", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sem_getvalue_2_1(p): +# ret = p.sendCommand('ltp_interfaces_sem_getvalue_2_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_sigmask_15_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_sigmask_15_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_91(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_91", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigismember_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigismember_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_setparam_23_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_setparam_23_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_sigmask_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_sigmask_8_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_14(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_14", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigdelset_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_sigdelset_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_mq_open_speculative_26_1(p): +# ret = p.sendCommand('ltp_mq_open_speculative_26_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_13_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_13_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_20(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_20", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_send_13_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_send_13_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_17_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_17_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaddset_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaddset_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_gettime_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_timer_gettime_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_getscheduler_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_getscheduler_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_getschedparam_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_getschedparam_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_read_11_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_read_11_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_14(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_14", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_lio_listio_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_lio_listio_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_definitions_errno_h_3_2(p): + ret = p.sendCommand("ltp_definitions_errno_h_3_2", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_condattr_init_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_condattr_init_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_9(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_9", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_90(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_90", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigprocmask_8_3(p): + ret = p.sendCommand( + "ltp_interfaces_sigprocmask_8_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigwait_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigwait_7_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_setprotocol_3_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_setprotocol_3_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_rr_get_interval_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_rr_get_interval_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigwaitinfo_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigwaitinfo_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_timedwait_11_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_timedwait_11_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_destroy_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_destroy_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mlock_10_1(p): + ret = p.sendCommand( + "ltp_interfaces_mlock_10_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_gettime_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_clock_gettime_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_cond_init_4_3(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_cond_init_4_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_post_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_post_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlockattr_getpshared_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlockattr_getpshared_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_getpshared_1_3(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_getpshared_1_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_munmap_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_munmap_8_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_74(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_74", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_6(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_6", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigprocmask_8_2(p): + ret = p.sendCommand( + "ltp_interfaces_sigprocmask_8_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_24(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_24", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_settime_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_settime_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_getres_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_getres_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_26(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_26", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_key_delete_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_key_delete_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_get_priority_min_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_sched_get_priority_min_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_19_11(p): +# ret = p.sendCommand('ltp_interfaces_sigaction_19_11', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_22(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_22", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigtimedwait_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigtimedwait_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_mq_open_3_1(p): +# ret = p.sendCommand('ltp_interfaces_mq_open_3_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setschedparam_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setschedparam_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_attr_setstacksize_1_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_attr_setstacksize_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_pthread_rwlock_trywrlock_speculative_3_1(p): + ret = p.sendCommand( + "ltp_pthread_rwlock_trywrlock_speculative_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_timedwrlock_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_timedwrlock_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sem_open_2_1(p): +# ret = p.sendCommand('ltp_interfaces_sem_open_2_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlockattr_init_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlockattr_init_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=5) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_2(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_nanosleep_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_nanosleep_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_16(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_16", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_2(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_cancel_10_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_cancel_10_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_mlockall_8_1(p): +# ret = p.sendCommand('ltp_interfaces_mlockall_8_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_37(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_37", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_setcancelstate_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_setcancelstate_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_init_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_init_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sem_open_4_1(p): +# ret = p.sendCommand('ltp_interfaces_sem_open_4_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_10(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_10", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_5(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_5", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_setschedparam_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_setschedparam_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_3_2(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_3_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setschedparam_1_4(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setschedparam_1_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=5) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_2(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setdetachstate_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setdetachstate_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_init_5_2(p): + ret = p.sendCommand( + "ltp_interfaces_sem_init_5_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_68(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_68", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_key_create_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_key_create_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_mutexattr_gettype_1_3(p): +# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_gettype_1_3', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_aio_fsync_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_fsync_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_18(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_18", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_destroy_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_destroy_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlockattr_init_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlockattr_init_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_62(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_62", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_13(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_13", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_create_1_3(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_create_1_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlockattr_destroy_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlockattr_destroy_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_condattr_setclock_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_condattr_setclock_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_signal_6_1(p): + ret = p.sendCommand("ltp_interfaces_signal_6_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_equal_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_equal_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_19(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_19", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_36(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_36", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_timer_delete_speculative_5_2(p): + ret = p.sendCommand( + "ltp_timer_delete_speculative_5_2", ["errno=EINVAL"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_behavior_WIFEXITED_1_1(p): + ret = p.sendCommand( + "ltp_behavior_WIFEXITED_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mmap_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_mmap_5_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_cond_destroy_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_cond_destroy_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_19(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_19", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_10(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_10", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_3_22(p): +# ret = p.sendCommand('ltp_interfaces_sigaction_3_22', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_munlock_11_1(p): + ret = p.sendCommand( + "ltp_interfaces_munlock_11_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_cleanup_pop_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_cleanup_pop_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_unlink_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_unlink_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_fsync_9_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_fsync_9_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_23(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_23", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigpause_3_1(p): + pytest.skip("unsupported") + ret = p.sendCommand( + "ltp_interfaces_sigpause_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_destroy_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_destroy_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_unlock_4_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_unlock_4_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigpending_1_3(p): + ret = p.sendCommand( + "ltp_interfaces_sigpending_1_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_cancel_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_cancel_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_26(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_26", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_4_64(p): +# ret = p.sendCommand('ltp_interfaces_sigaction_4_64', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigwaitinfo_7_1(p): + ret = p.sendCommand("ltp_interfaces_sigwaitinfo_7_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_2_8(p): +# ret = p.sendCommand('ltp_interfaces_sigaction_2_8', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigset_8_1(p): + ret = p.sendCommand("ltp_interfaces_sigset_8_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_4(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_read_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_read_8_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_get_priority_max_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_get_priority_max_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_destroy_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_destroy_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_16(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_16", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_18(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_18", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_10(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_10", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_41_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_41_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_87(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_87", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_3(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_timer_create_speculative_15_1(p): + ret = p.sendCommand( + "ltp_timer_create_speculative_15_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_spin_lock_3_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_spin_lock_3_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_25(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_25", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigwait_6_2(p): + ret = p.sendCommand( + "ltp_interfaces_sigwait_6_2", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_18(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_18", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mmap_6_5(p): + ret = p.sendCommand( + "ltp_interfaces_mmap_6_5", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_post_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_post_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_setscheduler_19_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_setscheduler_19_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_create_16_1(p): + ret = p.sendCommand( + "ltp_interfaces_timer_create_16_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_setspecific_1_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_setspecific_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_4(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_killpg_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_killpg_5_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_21(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_21", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_receive_12_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_receive_12_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigqueue_4_1(p): + ret = p.sendCommand("ltp_interfaces_sigqueue_4_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sem_open_5_1(p): +# ret = p.sendCommand('ltp_interfaces_sem_open_5_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_12(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_12", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_timedrdlock_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_timedrdlock_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_init_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_init_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigpending_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigpending_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaltstack_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaltstack_8_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=5) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_23_10(p): +# ret = p.sendCommand('ltp_interfaces_sigaction_23_10', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_strchr_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_strchr_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_20(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_20", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_key_delete_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_key_delete_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_close_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_close_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedreceive_17_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedreceive_17_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_setscheduler_17_5(p): + ret = p.sendCommand( + "ltp_interfaces_sched_setscheduler_17_5", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_nanosleep_13_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_nanosleep_13_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_38(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_38", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_22(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_22", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_24(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_24", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_15(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_15", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_init_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_init_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_22(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_22", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_mutex_trylock_2_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_mutex_trylock_2_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_mktime_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_mktime_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigwaitinfo_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigwaitinfo_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_timedwait_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_timedwait_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_17(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_17", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_atfork_2_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_atfork_2_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_cleanup_push_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_cleanup_push_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_sigmask_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_sigmask_7_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_read_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_read_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_getinheritsched_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_getinheritsched_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedreceive_17_3(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedreceive_17_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_timedwait_6_2(p): + ret = p.sendCommand( + "ltp_interfaces_sem_timedwait_6_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_strftime_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_strftime_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_94(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_94", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_condattr_destroy_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_condattr_destroy_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_24(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_24", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_unlink_10_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_unlink_10_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_once_1_2(p): + ret = p.sendCommand("ltp_interfaces_pthread_once_1_2", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_25(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_25", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_43(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_43", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_unlink_11_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_unlink_11_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_attr_getstacksize_1_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_attr_getstacksize_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +# def test_ltp_interfaces_pthread_kill_6_1(p): +# ret = p.sendCommand("ltp_interfaces_pthread_kill_6_1", ["ESRCH"], timeout=10) +# retID = p.sendCommand("echo $?", "0", timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_15(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_15", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_42(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_42", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_15_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_15_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_condattr_getclock_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_condattr_getclock_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_killpg_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_killpg_6_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedreceive_14_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedreceive_14_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_13(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_13", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_mutexattr_setpshared_3_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_setpshared_3_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + +# def test_ltp_interfaces_aio_return_3_2(p): +# ret = p.sendCommand('ltp_interfaces_aio_return_3_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setdetachstate_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setdetachstate_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_write_8_2(p): + ret = p.sendCommand( + "ltp_interfaces_aio_write_8_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_13(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_13", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_cleanup_push_1_3(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_cleanup_push_1_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_lio_listio_13_1(p): + ret = p.sendCommand( + "ltp_interfaces_lio_listio_13_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_lio_listio_18_1(p): + ret = p.sendCommand( + "ltp_interfaces_lio_listio_18_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_spin_lock_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_spin_lock_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_getattr_2_2(p): + ret = p.sendCommand( + "ltp_interfaces_mq_getattr_2_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_mq_open_speculative_6_1(p): + ret = p.sendCommand("ltp_mq_open_speculative_6_1", ["does not fail"], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_cond_destroy_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_cond_destroy_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_setscheduler_17_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_setscheduler_17_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_17(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_17", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_11_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_11_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_19(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_19", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_settime_8_4(p): + ret = p.sendCommand( + "ltp_interfaces_timer_settime_8_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_28_3(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_28_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_key_create_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_key_create_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_70(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_70", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mmap_10_1(p): + ret = p.sendCommand( + "ltp_interfaces_mmap_10_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_once_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_once_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_unlink_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_unlink_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_write_9_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_write_9_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_5(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_5", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_attr_setstacksize_4_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_attr_setstacksize_4_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_19_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_19_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_wait_13_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_wait_13_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_trywrlock_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_trywrlock_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedreceive_17_2(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedreceive_17_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_lio_listio_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_lio_listio_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigwait_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigwait_3_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_lio_listio_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_lio_listio_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_settime_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_timer_settime_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_103(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_103", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setstack_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setstack_7_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_rdlock_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_rdlock_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setdetachstate_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setdetachstate_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_functional_semaphores_sem_sleepingbarber(p): +# ret = p.sendCommand('ltp_functional_semaphores_sem_sleepingbarber', ['nice hair.'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_definitions_signal_h_13_1(p): + ret = p.sendCommand( + "ltp_definitions_signal_h_13_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_31(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_31", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_timer_gettime_speculative_6_2(p): + ret = p.sendCommand( + "ltp_timer_gettime_speculative_6_2", ["errno==EINVAL"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_13_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_13_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_52(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_52", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_54(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_54", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_attr_setschedparam_1_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_attr_setschedparam_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_raise_10000_1(p): + ret = p.sendCommand( + "ltp_interfaces_raise_10000_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_9(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_9", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_9(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_9", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_open_1_4(p): + ret = p.sendCommand( + "ltp_interfaces_sem_open_1_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedreceive_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedreceive_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_definitions_aio_h_4_1(p): + ret = p.sendCommand("ltp_definitions_aio_h_4_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_3(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_mutex_trylock_1_2(p): +# ret = p.sendCommand('ltp_interfaces_pthread_mutex_trylock_1_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + +# def test_ltp_interfaces_aio_fsync_5_1(p): +# ret = p.sendCommand('ltp_interfaces_aio_fsync_5_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_86(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_86", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_12(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_12", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_26(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_26", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_9(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_9", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_gettime_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_gettime_7_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_8_17(p): +# ret = p.sendCommand('ltp_interfaces_sigaction_8_17', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_15(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_15", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_14(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_14", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_7(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_7", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_5(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_5", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_76(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_76", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_mutex_destroy_2_2(p): +# ret = p.sendCommand('ltp_interfaces_pthread_mutex_destroy_2_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_11_2(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_11_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_getdetachstate_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_getdetachstate_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_definitions_signal_h_26_1(p): + ret = p.sendCommand("ltp_definitions_signal_h_26_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_exit_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_exit_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_timedwait_2_2(p): + ret = p.sendCommand( + "ltp_interfaces_sem_timedwait_2_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_22(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_22", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_7(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_7", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_21(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_21", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_12(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_12", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_open_29_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_29_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigprocmask_4_1(p): +# ret = p.sendCommand( +# "ltp_interfaces_sigprocmask_4_1", +# ["PASSED", "passed", "Passed", "PASS"], +# timeout=10, +# ) +# retID = p.sendCommand("echo $?", "0", timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setschedpolicy_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setschedpolicy_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_barrierattr_getpshared_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_barrierattr_getpshared_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_kill_7_1(p): + ret = p.sendCommand("ltp_interfaces_pthread_kill_7_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_post_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_post_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_mutexattr_gettype_1_5(p): +# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_gettype_1_5', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_condattr_destroy_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_condattr_destroy_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setschedparam_1_3(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setschedparam_1_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_functional_semaphores_sem_readerwriter(p): +# ret = p.sendCommand('ltp_functional_semaphores_sem_readerwriter', ['exit.'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_mq_timedsend_speculative_18_2(p): + ret = p.sendCommand( + "ltp_mq_timedsend_speculative_18_2", ["did not fail"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_cancel_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_cancel_8_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_mq_send_9_1(p): +# ret = p.sendCommand('ltp_interfaces_mq_send_9_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_mq_send_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_send_2_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigwait_8_1(p): +# ret = p.sendCommand('ltp_interfaces_sigwait_8_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + +# def test_ltp_interfaces_sigwait_1_1(p): +# ret = p.sendCommand('ltp_interfaces_sigwait_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_78(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_78", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_16_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_16_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_attr_setstack_6_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_attr_setstack_6_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setschedpolicy_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setschedpolicy_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_kill_2_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_kill_2_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_timedrdlock_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_timedrdlock_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_init_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_init_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_25(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_25", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_strftime_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_strftime_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_setpshared_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_setpshared_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_open_23_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_23_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_getpid_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_getpid_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_wait_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_wait_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_fsync_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_fsync_7_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_8(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_8", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_unlink_10_2(p): + ret = p.sendCommand( + "ltp_interfaces_shm_unlink_10_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mmap_27_1(p): + ret = p.sendCommand( + "ltp_interfaces_mmap_27_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_get_priority_min_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_get_priority_min_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_20(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_20", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigqueue_10_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigqueue_10_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_12(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_12", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_pthread_join_speculative_6_1(p): + ret = p.sendCommand( + "ltp_pthread_join_speculative_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_sigmask_16_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_sigmask_16_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_unlink_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_unlink_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigemptyset_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigemptyset_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_58(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_58", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_wrlock_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_wrlock_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=30, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_20(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_20", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_mq_unlink_speculative_7_2(p): + ret = p.sendCommand( + "ltp_mq_unlink_speculative_7_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigset_9_1(p): + ret = p.sendCommand("ltp_interfaces_sigset_9_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_21(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_21", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_close_3_3(p): + ret = p.sendCommand( + "ltp_interfaces_mq_close_3_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_rwlock_rdlock_1_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_rwlock_rdlock_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigignore_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigignore_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_8(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_8", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_7(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_7", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_open_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_open_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_nanosleep_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_nanosleep_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_shm_open_25_1(p): +# ret = p.sendCommand( +# "ltp_interfaces_shm_open_25_1", +# ["PASSED", "passed", "Passed", "PASS"], +# timeout=10, +# ) +# retID = p.sendCommand("echo $?", "0", timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sem_wait_12_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_wait_12_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_lio_listio_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_lio_listio_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_get_priority_max_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_sched_get_priority_max_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_5(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_5", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_pthread_getcpuclockid_speculative_3_1(p): + ret = p.sendCommand( + "ltp_pthread_getcpuclockid_speculative_3_1", ["doesn't exist"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_create_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_create_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_65(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_65", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_getattr_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_getattr_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_getscheduler_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_getscheduler_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_10(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_10", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_wait_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_wait_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_once_2_1(p): + ret = p.sendCommand("ltp_interfaces_pthread_once_2_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_setpshared_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_setpshared_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_difftime_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_difftime_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_getschedparam_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_getschedparam_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_12_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_12_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_23(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_23", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_killpg_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_killpg_4_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_15(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_15", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_setattr_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_setattr_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_19_15(p): +# ret = p.sendCommand('ltp_interfaces_sigaction_19_15', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + +# def test_ltp_interfaces_fsync_5_1(p): +# ret = p.sendCommand('ltp_interfaces_fsync_5_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigset_5_1(p): + ret = p.sendCommand("ltp_interfaces_sigset_5_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_14(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_14", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_open_1_3(p): + ret = p.sendCommand( + "ltp_interfaces_sem_open_1_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_3(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_send_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_send_4_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_6_14(p): +# ret = p.sendCommand('ltp_interfaces_sigaction_6_14', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_23(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_23", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_fork_1_1(p): +# ret = p.sendCommand('ltp_interfaces_fork_1_1', [''], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_4(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_12(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_12", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_barrier_destroy_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_barrier_destroy_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_13(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_13", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_10(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_10", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_2(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=5) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigwaitinfo_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigwaitinfo_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_timer_getoverrun_speculative_6_1(p): +# ret = p.sendCommand('ltp_timer_getoverrun_speculative_6_1', ['errno=EINVAL'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_89(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_89", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_14(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_14", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_25(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_25", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_100(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_100", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_timer_gettime_speculative_6_3(p): + ret = p.sendCommand( + "ltp_timer_gettime_speculative_6_3", ["errno==EINVAL"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_join_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_join_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_timedwait_10_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_timedwait_10_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_24(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_24", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_25(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_25", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_18(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_18", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_suspend_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_suspend_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigaction_18_16(p): +# ret = p.sendCommand('ltp_interfaces_sigaction_18_16', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_condattr_setpshared_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_condattr_setpshared_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_condattr_setclock_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_condattr_setclock_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_write_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_write_8_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_strftime_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_strftime_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_unlock_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_unlock_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_73(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_73", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_aio_write_1_2(p): +# ret = p.sendCommand('ltp_interfaces_aio_write_1_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_mq_getattr_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_getattr_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_setattr_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_mq_setattr_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_get_priority_min_1_4(p): + ret = p.sendCommand( + "ltp_interfaces_sched_get_priority_min_1_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_11(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_11", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_setpshared_3_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_setpshared_3_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_fsync_8_4(p): + ret = p.sendCommand( + "ltp_interfaces_aio_fsync_8_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_8(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_8", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_67(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_67", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_25(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_25", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_create_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_timer_create_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_getschedpolicy_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_getschedpolicy_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_join_6_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_join_6_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_settime_3_2(p): + ret = p.sendCommand( + "ltp_interfaces_timer_settime_3_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_destroy_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_destroy_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_unlink_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_unlink_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_5(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_5", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sched_setscheduler_19_4(p): +# ret = p.sendCommand('ltp_interfaces_sched_setscheduler_19_4', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_13(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_13", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_unlink_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_unlink_7_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_barrier_destroy_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_barrier_destroy_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_19_16(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_19_16", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_setschedparam_1_2(p): + ret = p.sendCommand("ltp_interfaces_pthread_setschedparam_1_2", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_63(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_63", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_send_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_send_8_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_34(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_34", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_setschedparam_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_setschedparam_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_unlink_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_unlink_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_send_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_send_7_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_read_3_2(p): + ret = p.sendCommand( + "ltp_interfaces_aio_read_3_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_12(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_12", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_39(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_39", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_signal_5_1(p): + ret = p.sendCommand("ltp_interfaces_signal_5_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_16(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_16", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_barrier_init_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_barrier_init_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_7(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_7", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigprocmask_9_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigprocmask_9_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_46(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_46", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_25(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_25", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sigqueue_7_1(p): +# ret = p.sendCommand( +# "ltp_interfaces_sigqueue_7_1", ["1, 2, 3", "62, 63,"], timeout=10 +# ) +# retID = p.sendCommand("echo $?", "0", timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_mq_open_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_7_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_mq_open_speculative_2_2(p): +# ret = p.sendCommand('ltp_mq_open_speculative_2_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_pthread_barrier_wait_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_barrier_wait_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_timers_clocks_invaliddates(p): + ret = p.sendCommand( + "ltp_timers_clocks_invaliddates", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_mq_open_speculative_2_3(p): + ret = p.sendCommand( + "ltp_mq_open_speculative_2_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigdelset_1_3(p): + ret = p.sendCommand( + "ltp_interfaces_sigdelset_1_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setscope_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setscope_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_getattr_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_getattr_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_14(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_14", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_receive_11_2(p): + ret = p.sendCommand( + "ltp_interfaces_mq_receive_11_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sched_rr_get_interval_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sched_rr_get_interval_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_attr_getstack_1_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_attr_getstack_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_7(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_7", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_sched_rr_get_interval_speculative_5_1(p): + ret = p.sendCommand( + "ltp_sched_rr_get_interval_speculative_5_1", ["NULL"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_13(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_13", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_read_10_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_read_10_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_mutexattr_getpshared_1_2(p): +# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_getpshared_1_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_raise_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_raise_4_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_strncpy_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_strncpy_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setinheritsched_2_3(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setinheritsched_2_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=5) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigset_10_1(p): + ret = p.sendCommand("ltp_interfaces_sigset_10_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_settime_8_1(p): + ret = p.sendCommand( + "ltp_interfaces_timer_settime_8_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_open_21_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_21_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_95(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_95", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedreceive_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedreceive_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_nanosleep_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_nanosleep_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_behavior_timers_2_1(p): + ret = p.sendCommand( + "ltp_behavior_timers_2_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_aio_return_3_1(p): +# ret = p.sendCommand('ltp_interfaces_aio_return_3_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sighold_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_sighold_3_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_setcancelstate_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_setcancelstate_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_20_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_20_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlock_timedrdlock_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlock_timedrdlock_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_raise_1_2(p): +# ret = p.sendCommand('ltp_interfaces_raise_1_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_clock_getres_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_getres_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_getspecific_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_getspecific_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_20(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_20", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_signal_1_1(p): + ret = p.sendCommand("ltp_interfaces_signal_1_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_fsync_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_fsync_4_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_barrierattr_destroy_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_barrierattr_destroy_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_6(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_6", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_17(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_17", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_45(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_45", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setdetachstate_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setdetachstate_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_behavior_timers_1_1(p): + ret = p.sendCommand( + "ltp_behavior_timers_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_8(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_8", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_open_25_2(p): + ret = p.sendCommand( + "ltp_interfaces_mq_open_25_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_attr_setinheritsched_2_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_attr_setinheritsched_2_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_66(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_66", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_16(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_16", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_gettime_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_timer_gettime_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_8(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_8", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_sem_unlink_6_1(p): +# ret = p.sendCommand('ltp_interfaces_sem_unlink_6_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_timer_getoverrun_speculative_6_3(p): + ret = p.sendCommand( + "ltp_timer_getoverrun_speculative_6_3", ["errno==EINVAL"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_mutexattr_settype_1_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_settype_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_aio_cancel_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_cancel_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_2(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_signal_2_1(p): + ret = p.sendCommand("ltp_interfaces_signal_2_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutex_init_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutex_init_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_definitions_sched_h_10_1(p): + ret = p.sendCommand("ltp_definitions_sched_h_10_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigset_3_1(p): + ret = p.sendCommand("ltp_interfaces_sigset_3_1", ["Inside handler"], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_nanosleep_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_nanosleep_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigrelse_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigrelse_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_cancel_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_cancel_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedsend_20_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedsend_20_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_send_3_2(p): + ret = p.sendCommand( + "ltp_interfaces_mq_send_3_2", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_timer_delete_speculative_5_1(p): + ret = p.sendCommand( + "ltp_timer_delete_speculative_5_1", ["errno=EINVAL"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +# def test_ltp_interfaces_pthread_attr_setstack_1_1(p): +# ret = p.sendCommand('ltp_interfaces_pthread_attr_setstack_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) +# retID = p.sendCommand('echo $?', '0', timeout=2) +# assert ret >= 0 +# assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_19(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_19", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_4(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_clock_getres_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_clock_getres_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedreceive_10_2(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedreceive_10_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_create_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_create_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_12_32(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_12_32", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_5(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_5", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_testcancel_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_testcancel_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_condattr_setclock_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_condattr_setclock_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_timedwait_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_timedwait_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_read_5_1(p): + ret = p.sendCommand( + "ltp_interfaces_aio_read_5_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_18(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_18", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_17(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_17", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_2_22(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_2_22", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_stress_signals_sigismember_stress_1(p): + ret = p.sendCommand("ltp_stress_signals_sigismember_stress_1", [""], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_definitions_mqueue_h_1_1(p): + ret = p.sendCommand( + "ltp_definitions_mqueue_h_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_condattr_setclock_1_3(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_condattr_setclock_1_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_killpg_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_killpg_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_timedreceive_10_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_timedreceive_10_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_send_11_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_send_11_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_barrier_init_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_barrier_init_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlockattr_setpshared_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlockattr_setpshared_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_close_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_close_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_open_14_2(p): + ret = p.sendCommand( + "ltp_interfaces_shm_open_14_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mmap_23_1(p): + ret = p.sendCommand( + "ltp_interfaces_mmap_23_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_close_2_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_close_2_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_condattr_setpshared_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_condattr_setpshared_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigqueue_9_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigqueue_9_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_lio_listio_12_1(p): + ret = p.sendCommand( + "ltp_interfaces_lio_listio_12_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_lio_listio_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_lio_listio_7_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutex_destroy_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutex_destroy_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_cancel_4_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_cancel_4_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_timedwait_7_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_timedwait_7_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_rwlockattr_getpshared_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_rwlockattr_getpshared_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_8_6(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_8_6", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_gettime_2_2(p): + ret = p.sendCommand( + "ltp_interfaces_timer_gettime_2_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigignore_6_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigignore_6_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_28_22(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_28_22", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_17(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_17", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigprocmask_15_1(p): + ret = p.sendCommand( + "ltp_interfaces_sigprocmask_15_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_shm_unlink_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_shm_unlink_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_96(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_96", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_18_6(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_18_6", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_23(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_23", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_101(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_101", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_gettime_1_3(p): + ret = p.sendCommand( + "ltp_interfaces_timer_gettime_1_3", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_6(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_6", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_sigmask_12_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_sigmask_12_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_3_26(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_3_26", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_23_4(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_23_4", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_aio_read_11_2(p): + ret = p.sendCommand( + "ltp_interfaces_aio_read_11_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_mq_receive_11_1(p): + ret = p.sendCommand( + "ltp_interfaces_mq_receive_11_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_6_11(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_6_11", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sem_init_3_1(p): + ret = p.sendCommand( + "ltp_interfaces_sem_init_3_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_lio_listio_15_1(p): + ret = p.sendCommand( + "ltp_interfaces_lio_listio_15_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_1_17(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_1_17", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_13_24(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_13_24", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_timer_delete_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_timer_delete_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_stress_semaphores_multi_con_pro(p): + ret = p.sendCommand("ltp_stress_semaphores_multi_con_pro 5", ["exit."], timeout=10) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_setpshared_2_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_setpshared_2_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_mutexattr_getprotocol_1_1(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_mutexattr_getprotocol_1_1", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_pthread_create_1_2(p): + ret = p.sendCommand( + "ltp_interfaces_pthread_create_1_2", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_98(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_98", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 + + +def test_ltp_interfaces_sigaction_4_57(p): + ret = p.sendCommand( + "ltp_interfaces_sigaction_4_57", + ["PASSED", "passed", "Passed", "PASS"], + timeout=10, + ) + retID = p.sendCommand("echo $?", "0", timeout=2) + assert ret >= 0 + assert retID >= 0 diff --git a/tools/ci/testrun/script/test_os/test_os.py b/tools/ci/testrun/script/test_os/test_os.py index bd8c6f3938..f2fad496d3 100644 --- a/tools/ci/testrun/script/test_os/test_os.py +++ b/tools/ci/testrun/script/test_os/test_os.py @@ -7,14 +7,14 @@ do_not_support = ["sabre-6quad", "rv-virt", "rv-virt64", "esp32c3-devkit", "bl60 def test_ostest(p): - ret = p.sendCommand("ostest", "Exiting with status 0", 300) + ret = p.sendCommand("ostest", "Exiting with status 0", timeout=300) assert ret == 0 def test_mm(p): if p.board in do_not_support: pytest.skip("unsupported at {}".format(p.board)) - ret = p.sendCommand("mm", "TEST COMPLETE", 120) + ret = p.sendCommand("mm", "TEST COMPLETE", timeout=120) assert ret == 0 @@ -56,7 +56,7 @@ def test_fs_test(p): pytest.skip("unsupported at {}".format(p.board)) fstest_dir = "{}/{}_fstest".format(p.fs, p.core) p.sendCommand("mkdir %s" % fstest_dir) - ret = p.sendCommand("fstest -n 10 -m %s" % fstest_dir, "FAILED: 0", 2000) + ret = p.sendCommand("fstest -n 10 -m %s" % fstest_dir, "FAILED: 0", timeout=2000) p.sendCommand("ls %s" % fstest_dir) p.sendCommand("rmdir %s" % fstest_dir) assert ret == 0 @@ -67,6 +67,6 @@ def test_psram_test(p): if p.board in do_not_support: pytest.skip("unsupported at {}".format(p.board)) if p.sendCommand("ls /", "tmp/") == 0: - ret = p.sendCommand("fstest -n 10 -m /tmp", "Final memory usage", 500) + ret = p.sendCommand("fstest -n 10 -m /tmp", "Final memory usage", timeout=500) p.sendCommand("ls /tmp") assert ret == 0 diff --git a/tools/ci/testrun/utils/common.py b/tools/ci/testrun/utils/common.py index 63ff550e7d..60185b68ce 100644 --- a/tools/ci/testrun/utils/common.py +++ b/tools/ci/testrun/utils/common.py @@ -4,13 +4,43 @@ import os import re import subprocess import time +from enum import Enum import pexpect import pexpect.fdpexpect +import pexpect.spawnbase import serial rootPath = os.path.dirname(os.path.abspath(__file__)) +tmp_read_nonblocking = pexpect.spawnbase.SpawnBase.read_nonblocking + + +def enhanced_read_nonblocking(self, size=1, timeout=None): + return re.sub( + r"(\x9B|\x1B\[)[0-?]*[ -\/]*[@-~]", + "", + tmp_read_nonblocking(self, size, timeout).decode(errors="ignore"), + ).encode() + + +pexpect.spawnbase.SpawnBase.read_nonblocking = enhanced_read_nonblocking + + +class StatusCodeEnum(Enum): + NORMAL = (0, "Normal") + TIMEOUT_ERR = (-1, "Timeout") + EOF_ERR = (-2, "EOF") + CRASH_ERR = (-3, "Crash happened") + BUSYLOOP_ERR = (-4, "Busy loop happened") + UNKNOWN_ERR = (-5, "Unknown") + + @staticmethod + def get_enum_msg_by_code(status_code): + for status in StatusCodeEnum: + if status.value[0] == status_code: + return status.value[1] + class connectNuttx(object): def __init__( @@ -40,6 +70,7 @@ class connectNuttx(object): self.target = target self.enter = "\r" self.debug_flag = 0 + self.format_str_len = 105 # get PROMPT value and rate value self.PROMPT = getConfigValue( self.path, self.board, core=self.core, flag="NSH_PROMPT_STRING" @@ -107,38 +138,130 @@ class connectNuttx(object): self.process.send(byte) time.sleep(1) self.process.send(byte) - time.sleep(1) - self.process.sendline("\n") - ret = self.process.expect_exact(expect) - return ret + + def print_format_str(self, string, type="text"): + str_prefix = "+" + str_suffix = "+" + + if type == "head": + rest_char_len = self.format_str_len - 2 - len(string) + half_len = int(rest_char_len / 2) + print( + str_prefix + + "-" * half_len + + string + + "-" * (rest_char_len - half_len) + + str_suffix + ) + elif type == "tail": + rest_char_len = self.format_str_len - 2 + print(str_prefix + "-" * rest_char_len + str_suffix) + elif type == "text": + str_prefix = "| " + str_suffix = " |" + rest_char_len = ( + self.format_str_len - len(str_prefix) - len(str_suffix) - len(string) + ) + print( + str_prefix + + string + + " " * (1 if rest_char_len < 1 else rest_char_len) + + str_suffix + ) + else: + print(string) + + def clean_buffer(self): + i = -1 + while True: + if ( + ( + self.process.before is not None + and self.process.before.decode(errors="ignore") + .replace("\r", "") + .replace("\n", "") + != "" + ) + or ( + self.process.after is not None + and self.process.after != pexpect.TIMEOUT + and self.process.after.decode(errors="ignore") + .replace("\r", "") + .replace("\n", "") + != "" + ) + or i == 0 + ): + i = self.process.expect( + [re.compile(b".+"), pexpect.TIMEOUT, pexpect.EOF], timeout=0.1 + ) + else: + while True: + try: + self.process.read_nonblocking( + size=self.process.maxread, timeout=0.1 + ) + except Exception: + break + self.process.before = b"" + self.process.after = b"" + break # send command to nsh - def sendCommand(self, cmd, expect="", timeout=10, flag=""): + def sendCommand(self, cmd, *argc, **argv): + expect = [] + timeout = 10 + ret = StatusCodeEnum.NORMAL.value[0] + length = len(argc) + if length == 0: + expect.append(self.PROMPT) + else: + for i in argc: + expect.append(i) + length = len(argv) + if length != 0: + for key, value in argv.items(): + if key == "timeout": + timeout = value if self.method != "minicom": time.sleep(0.5) - if not expect: - expect = self.PROMPT - self.process.buffer = b"" - self.process.sendline(cmd) + if self.target == "qemu": + self.clean_buffer() + self.process.sendline(cmd) + else: + self.clean_buffer() + self.process.sendline(cmd) + time.sleep(0.1) + self.process.send("\r\n\r\n") try: - ret = self.process.expect(expect, timeout=timeout) - except pexpect.TIMEOUT: - print("Debug: TIMEOUT '%s' exist and run next test case" % cmd) - ret = -1 - except pexpect.EOF: - print("Debug: EOF raise exception") - ret = -2 - finally: - if self.debug_flag: - self.debug(cmd, ret) - self.process.buffer = b"" - self.process.sendline("\n") - if flag: - is_newline = self.process.expect_exact(flag, timeout=timeout) + for i in expect: + ret = self.process.expect(i, timeout=timeout) + except Exception as e: + self.print_format_str(" Catch Exception ", type="head") + + if isinstance(e, pexpect.TIMEOUT): + ret = StatusCodeEnum.TIMEOUT_ERR.value[0] + + elif isinstance(e, pexpect.EOF): + ret = StatusCodeEnum.EOF_ERR.value[0] + self.print_format_str(f"An pexpect.EOF error occurred: {str(e)}") + else: - is_newline = self.process.expect_exact(self.PROMPT, timeout=timeout) - if self.debug_flag: - self.debug("NEWLINE", is_newline) + ret = StatusCodeEnum.UNKNOWN_ERR.value[0] + self.print_format_str(f"An unexpected error occurred: {str(e)}") + + self.print_format_str(" Result ", type="head") + self.print_format_str(f"Command : '{cmd}'") + self.print_format_str(f"Expect value: {str(expect)}") + self.print_format_str(f"Timeout : {timeout}s") + self.print_format_str( + f"Test result : {StatusCodeEnum.get_enum_msg_by_code(ret)}" + ) + self.print_format_str("", type="tail") + + finally: + self.debug(cmd, ret) + if self.method != "minicom": time.sleep(0.5) return ret @@ -151,15 +274,16 @@ class connectNuttx(object): self.process.expect_exact(self.PROMPT) def debug(self, cmd, ret): - print("********************* DEBUG START ********************") - if cmd == "\n": - cmd = r"\n" - print("cmd: %s\n" % cmd) - print("ret: %s\n" % str(ret)) - print("before: %s\n" % repr(self.process.before)) - print("after: %s\n" % repr(self.process.after)) - print("buffer: %s\n" % repr(self.process.buffer)) - print("********************** DEBUG END **********************") + if self.debug_flag: + print("********************* DEBUG START ********************") + if cmd == "\n": + cmd = r"\n" + print("cmd: {}".format(cmd)) + print("ret: {}".format(ret)) + print("before: {}".format(self.process.before.decode(errors="ignore"))) + print("after: {}".format(self.process.after.decode(errors="ignore"))) + print("buffer: {}".format(self.process.buffer.decode(errors="ignore"))) + print("********************** DEBUG END **********************") def cleanup(self): if self.target == "sim": diff --git a/tools/ci/testrun/utils/data_model.py b/tools/ci/testrun/utils/data_model.py new file mode 100644 index 0000000000..ef74645631 --- /dev/null +++ b/tools/ci/testrun/utils/data_model.py @@ -0,0 +1,235 @@ +import re +from datetime import datetime +from typing import Dict, List + +""" +cmocka.json +""" + +Passed = "Passed" +Failed = "Failed" +Unexecuted = "Unexecuted" + + +class CaseInfo: + def __init__(self, test_suite_name, test_case_name, status, log=None): + self.test_suite_name = test_suite_name + # case nameļ¼Œe.g. "TestNuttxMm01" + self.test_case_name = test_case_name + # result: Passed or Failed + self.status = status + # log + self.log: List = [""] if log is None else log + + +class SuiteInfo: + def __init__(self, test_suite_name): + # suite name, e.g. "NuttxMmTestSuites" + self.test_suite_name = test_suite_name + # all test cases in the current test suite + self.test_cases: Dict[str, CaseInfo] = dict() + # number of cases passed in the current test suites + self.passed_count = 0 + # number of cases failed in the current test suites + self.failed_count = 0 + # case run count + self.run_count = 0 + # unexecuted count + self.unexecuted_count = 0 + # number of cases in the current test suites + self.cases_count = 0 + # suite run flag + self.is_suite_run = False + + +class CmockaSummary: + def __init__(self, duration=0): + # number of all test suites + self.total_suites_count = 0 + # all test cases number + self.total_cases_count = 0 + # number of all passed cases + self.total_passed_count = 0 + # number of all failed cases + self.total_failed_count = 0 + # number of all unknown cases + self.total_unexecuted_count = 0 + # duration + self.duration = duration + + +class CmockaSingleCoreRecord: + def __init__(self, lines, core="", board="", log="", duration=0): + # create time + self.create_at = datetime.now().strftime("%Y-%m-%d %H:%M:%S") + # core + self.core = "" if core is None else core + # board + self.board = "" if board is None else board + # cmocka info + self.test_suites: Dict[str, SuiteInfo] = dict() + # summary + self.summary = CmockaSummary(duration) + # log path + self.log = "" if log is None else log + # bad_case + self.bad_case_tip = "" + + suite_pattern = r"\] (?P[a-zA-Z]*TestSuites)" + case_pattern = r"\]\s+(?PTestNuttx\w+)" + lines_iter = iter(lines) + + current_suite = None + while True: + try: + line = next(lines_iter) + if (suite_match := re.search(suite_pattern, line)) is not None: + current_suite = suite_match.group("test_suite_name") + + elif ( + current_suite is not None + and (case_match := re.search(case_pattern, line)) is not None + ): + current_case = case_match.group("test_case_name") + self.append(CaseInfo(current_suite, current_case, Unexecuted)) + + except StopIteration: + break + + def append(self, object: CaseInfo): + suite: SuiteInfo = self.test_suites.get(object.test_suite_name) + if suite is None: + suite = SuiteInfo(object.test_suite_name) + self.test_suites.update({object.test_suite_name: suite}) + suite.test_cases.update({object.test_case_name: object}) + + passed_count = 0 + failed_count = 0 + unexecuted_count = 0 + + test_case: CaseInfo + for test_case in suite.test_cases.values(): + if test_case.status == Passed: + passed_count += 1 + elif test_case.status == Failed: + failed_count += 1 + else: + unexecuted_count += 1 + suite.passed_count = passed_count + suite.failed_count = failed_count + suite.unexecuted_count = unexecuted_count + suite.run_count = passed_count + failed_count + suite.cases_count = passed_count + failed_count + unexecuted_count + if passed_count + failed_count != 0: + suite.is_suite_run = True + + total_passed_count = 0 + total_failed_count = 0 + total_unexecuted_count = 0 + total_cases_count = 0 + + suite: SuiteInfo + for suite in self.test_suites.values(): + total_passed_count += suite.passed_count + total_failed_count += suite.failed_count + total_unexecuted_count += suite.unexecuted_count + total_cases_count += suite.cases_count + + self.summary.total_passed_count = total_passed_count + self.summary.total_failed_count = total_failed_count + self.summary.total_unexecuted_count = total_unexecuted_count + self.summary.total_cases_count = total_cases_count + self.summary.total_suites_count = len(self.test_suites) + + def process(self, lines, err_code): + # regular expression + suite_start_pattern = r"\] (?P[a-zA-Z]*TestSuites): Running (?P\d+) test\(s\)" + case_run_pattern = r"\[\s+RUN\s+\] (?PTestNuttx\w+)" + case_pass_pattern = r"\[\s+OK\s+\] (?PTestNuttx\w+)" + case_fail_pattern = r"\[\s+FAILED\s+\] (?PTestNuttx\w+)" + + lines_iter = iter(lines) + line = next(lines_iter) + while True: + try: + interrupt_flag = False + # matching new test suites + if ( + suite_start_match := re.search(suite_start_pattern, line) + ) is not None: + test_suite_name = suite_start_match.group("test_suite_name") + cases_count = int(suite_start_match.group("cases_count")) + suite_end_pattern = r"{}: {} test(s) run.".format( + test_suite_name, cases_count + ) + + line = next(lines_iter) + while True: + if ( + case_run_match := re.search(case_run_pattern, line) + ) is not None: + test_case_name = case_run_match.group("test_case_name") + log = [line] + + while True: + try: + line = next(lines_iter) + log.append(line) + except StopIteration: + self.append( + CaseInfo( + test_suite_name, test_case_name, Failed, log + ) + ) + if err_code == -3: + self.bad_case_tip = f"This case was not executed, \ + because crash occurred after running '{test_case_name}'." + elif err_code == -4: + self.bad_case_tip = f"This case was not executed, \ + because no response for a long time after running '{test_case_name}'." + elif err_code == -1: + self.bad_case_tip = f"This case was not executed, \ + because the maximum waiting time has been exceeded \ + while running '{test_case_name}'." + else: + self.bad_case_tip = "This case was not executed due to unknown reasons." + raise StopIteration + + if re.search(case_pass_pattern, line) is not None: + self.append( + CaseInfo( + test_suite_name, test_case_name, Passed, log + ) + ) + break + + elif re.search(case_fail_pattern, line) is not None: + self.append( + CaseInfo( + test_suite_name, test_case_name, Failed, log + ) + ) + break + + elif re.search(suite_start_pattern, line) is not None: + self.append( + CaseInfo( + test_suite_name, test_case_name, Failed, log + ) + ) + interrupt_flag = True + break + + elif suite_end_pattern in line: + break + + if interrupt_flag: + break + + line = next(lines_iter) + + if interrupt_flag: + continue + line = next(lines_iter) + except StopIteration: + break