You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2026/09/02 14:44:30 UTC
(nuttx) branch master updated (83b4239e1d7 -> 6ffbbbd39da)
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
from 83b4239e1d7 arch/sim: switch nonblock setup to ioctl FIONBIO
new 179bf35fdd1 tools/ci: remove obsolete testrun harness
new 6ffbbbd39da Documentation: add instructions how to run NTFC locally
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/CODEOWNERS | 1 -
Documentation/testing/citests.rst | 59 -
Documentation/testing/index.rst | 5 +-
Documentation/testing/ntfc.rst | 53 +-
tools/ci/cirun.sh | 68 -
tools/ci/testrun/README.md | 43 -
tools/ci/testrun/env/requirements.txt | 6 -
tools/ci/testrun/pytest.ini | 18 -
tools/ci/testrun/script/__init__.py | 23 -
tools/ci/testrun/script/conftest.py | 156 -
tools/ci/testrun/script/test_example/__init__.py | 23 -
.../ci/testrun/script/test_example/test_example.py | 51 -
tools/ci/testrun/script/test_framework/__init__.py | 23 -
.../testrun/script/test_framework/test_cmocka.py | 61 -
tools/ci/testrun/script/test_libuv/__init__.py | 23 -
tools/ci/testrun/script/test_libuv/test_libuv.py | 448 -
.../ci/testrun/script/test_open_posix/__init__.py | 23 -
.../script/test_open_posix/test_openposix_.py | 11205 -------------------
tools/ci/testrun/script/test_os/__init__.py | 23 -
tools/ci/testrun/script/test_os/test_os.py | 109 -
tools/ci/testrun/utils/__init__.py | 23 -
tools/ci/testrun/utils/common.py | 492 -
tools/ci/testrun/utils/data_model.py | 257 -
23 files changed, 56 insertions(+), 13137 deletions(-)
delete mode 100644 Documentation/testing/citests.rst
delete mode 100755 tools/ci/cirun.sh
delete mode 100644 tools/ci/testrun/README.md
delete mode 100644 tools/ci/testrun/env/requirements.txt
delete mode 100644 tools/ci/testrun/pytest.ini
delete mode 100644 tools/ci/testrun/script/__init__.py
delete mode 100644 tools/ci/testrun/script/conftest.py
delete mode 100644 tools/ci/testrun/script/test_example/__init__.py
delete mode 100644 tools/ci/testrun/script/test_example/test_example.py
delete mode 100644 tools/ci/testrun/script/test_framework/__init__.py
delete mode 100644 tools/ci/testrun/script/test_framework/test_cmocka.py
delete mode 100644 tools/ci/testrun/script/test_libuv/__init__.py
delete mode 100644 tools/ci/testrun/script/test_libuv/test_libuv.py
delete mode 100644 tools/ci/testrun/script/test_open_posix/__init__.py
delete mode 100644 tools/ci/testrun/script/test_open_posix/test_openposix_.py
delete mode 100644 tools/ci/testrun/script/test_os/__init__.py
delete mode 100644 tools/ci/testrun/script/test_os/test_os.py
delete mode 100644 tools/ci/testrun/utils/__init__.py
delete mode 100644 tools/ci/testrun/utils/common.py
delete mode 100644 tools/ci/testrun/utils/data_model.py
(nuttx) 02/02: Documentation: add instructions how to run NTFC locally
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 6ffbbbd39da9ba70c9d645420443aa7f0be9468c
Author: raiden00pl <ra...@railab.me>
AuthorDate: Wed Sep 2 09:52:01 2026 +0200
Documentation: add instructions how to run NTFC locally
add instructions how to run NTFC locally
Assisted-by: Claude Code
Signed-off-by: raiden00pl <ra...@railab.me>
---
Documentation/testing/ntfc.rst | 51 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/Documentation/testing/ntfc.rst b/Documentation/testing/ntfc.rst
index a580b5ed6c7..76b780cbb21 100644
--- a/Documentation/testing/ntfc.rst
+++ b/Documentation/testing/ntfc.rst
@@ -23,6 +23,57 @@ CI runtime test cases use NTFC. Configurations with an NTFC runner include:
- :doc:`arm64/qemu </platforms/arm64/qemu/boards/qemu-armv8a/index>`: ``qemu-armv8a/citest``
- :doc:`arm64/qemu </platforms/arm64/qemu/boards/qemu-armv8a/index>`: ``qemu-armv8a/citest_smp``
+Running a CI Test Target Locally
+================================
+
+Run NTFC from the top-level NuttX source directory. The relative paths in a
+target's ``config.yaml`` file, including the NuttX configuration and image
+paths, are resolved from that directory. A working NuttX build environment
+and any emulator or hardware required by the target must already be available.
+
+Create a Python 3.10 or newer virtual environment and install the NTFC and test
+case versions currently used by NuttX CI:
+
+.. code-block:: console
+
+ $ python3 -m venv ../ntfc-venv
+ $ . ../ntfc-venv/bin/activate
+ $ python -m pip install ntfc==0.0.1
+ $ git clone --branch release-0.0.2 --depth 1 \
+ https://github.com/apache/nuttx-ntfc-testing ../nuttx-ntfc-testing
+
+Build the target in the usual way. For example, the simulator CI
+configuration uses the Make build:
+
+.. code-block:: console
+
+ $ ./tools/configure.sh sim:citest
+ $ make
+
+Configurations whose ``config.yaml`` refers to ``./build/nuttx`` require an
+out-of-tree CMake build instead. For example, build ``qemu-armv8a:citest``
+with:
+
+.. code-block:: console
+
+ $ cmake -B build -DBOARD_CONFIG=qemu-armv8a:citest -GNinja
+ $ cmake --build build
+
+Then pass the test case checkout and the target's NTFC configuration files to
+NTFC. For ``sim:citest`` this is:
+
+.. code-block:: console
+
+ $ python -m ntfc test \
+ --testpath=../nuttx-ntfc-testing \
+ --confpath=boards/sim/sim/sim/configs/citest/config.yaml \
+ --jsonconf=boards/sim/sim/sim/configs/citest/session.json
+
+For another target, replace the build target and both configuration paths with
+the files from that target's ``configs/<configuration>`` directory. NTFC
+selects the applicable tests from the NuttX configuration and image and stores
+the test results under ``result/`` by default.
+
NTFC exports test logs as CI artifacts. This allows test logs (including
:doc:`ostest </applications/testing/ostest/index>` output) to be downloaded
directly from the CI for all targets where the ``citest`` configuration is
(nuttx) 01/02: tools/ci: remove obsolete testrun harness
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 179bf35fdd111a871edf64531e7dd857d09fab9f
Author: raiden00pl <ra...@railab.me>
AuthorDate: Tue Sep 1 14:28:25 2026 +0200
tools/ci: remove obsolete testrun harness
NuttX CI runtime test cases have migrated to NTFC.
Remove the unused pytest harness and related files.
Assisted-by: Claude Code
Signed-off-by: raiden00pl <ra...@railab.me>
---
.github/CODEOWNERS | 1 -
Documentation/testing/citests.rst | 59 -
Documentation/testing/index.rst | 5 +-
Documentation/testing/ntfc.rst | 2 +-
tools/ci/cirun.sh | 68 -
tools/ci/testrun/README.md | 43 -
tools/ci/testrun/env/requirements.txt | 6 -
tools/ci/testrun/pytest.ini | 18 -
tools/ci/testrun/script/__init__.py | 23 -
tools/ci/testrun/script/conftest.py | 156 -
tools/ci/testrun/script/test_example/__init__.py | 23 -
.../ci/testrun/script/test_example/test_example.py | 51 -
tools/ci/testrun/script/test_framework/__init__.py | 23 -
.../testrun/script/test_framework/test_cmocka.py | 61 -
tools/ci/testrun/script/test_libuv/__init__.py | 23 -
tools/ci/testrun/script/test_libuv/test_libuv.py | 448 -
.../ci/testrun/script/test_open_posix/__init__.py | 23 -
.../script/test_open_posix/test_openposix_.py | 11205 -------------------
tools/ci/testrun/script/test_os/__init__.py | 23 -
tools/ci/testrun/script/test_os/test_os.py | 109 -
tools/ci/testrun/utils/__init__.py | 23 -
tools/ci/testrun/utils/common.py | 492 -
tools/ci/testrun/utils/data_model.py | 257 -
23 files changed, 5 insertions(+), 13137 deletions(-)
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 8f932f87c9b..8482677017d 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -190,7 +190,6 @@ Documentation/guides/automounter.rst raiden00@railab.me
Documentation/guides/building_nuttx_with_app_out_of_src_tree.rst ludovicvanasse@gmail.com
Documentation/guides/building_uclibcpp.rst ludovicvanasse@gmail.com
Documentation/guides/changing_systemclockconfig.rst ludovicvanasse@gmail.com devel@sumpfralle.de
-Documentation/guides/citests.rst michallenc@seznam.cz devel@sumpfralle.de ludovicvanasse@gmail.com 59230071+hartmannathan@users.noreply.github.com
Documentation/guides/cpp_cmake.rst flavio.alves@phiinnovations.com xiaoxiang@xiaomi.com longdh.2017.vn@gmail.com raiden00@railab.me 59230071+hartmannathan@users.noreply.github.com
Documentation/guides/custom_app_directories.rst ludovicvanasse@gmail.com
Documentation/guides/customapps.rst 56726697+TimJTi@users.noreply.github.com acassis@gmail.com raiden00@railab.me 31182898+dlstjq7685@users.noreply.github.com
diff --git a/Documentation/testing/citests.rst b/Documentation/testing/citests.rst
deleted file mode 100644
index f6c7bc47c47..00000000000
--- a/Documentation/testing/citests.rst
+++ /dev/null
@@ -1,59 +0,0 @@
-.. include:: /substitutions.rst
-.. _citests:
-
-======================================
-Running CI Runtime Test Suites Locally
-======================================
-
-NuttX automatically runs continuous integration (CI) tests on
-`simulator <https://nuttx.apache.org/docs/latest/guides/simulator.html>`__
-and QEMU targets when a new pull request is submitted. To avoid the tests failing
-you can also run them locally on your computer prior to submitting a new pull request.
-This page describes the step by step manual to do so.
-
-Configuring NuttX
-=================
-
-NuttX has a simulator target that allows the user to run NuttX as a regular
-program on a computer. The simulator target with CI test is configured and
-compiled followingly.
-
- .. code-block:: console
-
- $ cd nuttx
- $ ./tools/configure.sh sim:citest
- $ make
-
-You should see NuttX shell with built in test applications. Now you can exit
-the simulator.
-
- .. code-block:: console
-
- nsh> poweroff
- $
- $ # we're back at the Linux prompt.
-
-
-Running CI Tests with ``tools/ci/testrun``
-==========================================
-
-Running CI tests locally requires Minicom and Python 3.6 or newer to be
-installed on the system. Other requirements can be installed with following
-set of commands.
-
- .. code-block:: console
-
- $ cd tools/ci/testrun/env
- $ pip3 install -r requirements.txt
- $ cd ..
- $ cd script
-
-Now you have everything prepared to run CI tests. The tests themselves are run
-by following command.
-
- .. code-block:: console
-
- $ python3 -m pytest -m 'common or sim' ./ -B sim -P <nuttx-path> -L <log-path> -R sim -C --json=<log-path>/pytest.json
-
-Where nuttx-path is an absolute path to NuttX root directory and log-path is
-a user defined directory to which tests log are saved.
diff --git a/Documentation/testing/index.rst b/Documentation/testing/index.rst
index 540448039e5..d2fddad5cca 100644
--- a/Documentation/testing/index.rst
+++ b/Documentation/testing/index.rst
@@ -7,9 +7,12 @@ This page contains information related to NuttX testing.
For information about included NuttX testing applications, please see
:doc:`/applications/testing/index`.
+.. note::
+
+ NuttX CI runtime test cases use :doc:`NTFC </testing/ntfc>`.
+
.. toctree::
nuttx-ci.rst
- citests.rst
ntfc.rst
nxdart.rst
diff --git a/Documentation/testing/ntfc.rst b/Documentation/testing/ntfc.rst
index c593bb3e11d..a580b5ed6c7 100644
--- a/Documentation/testing/ntfc.rst
+++ b/Documentation/testing/ntfc.rst
@@ -14,7 +14,7 @@ The framework and official test cases are available at:
Detailed documentation is available in the framework repository.
-CI migration to NTFC is in progress. Configurations currently using NTFC:
+CI runtime test cases use NTFC. Configurations with an NTFC runner include:
- :doc:`risc-v/qemu-rv </platforms/risc-v/qemu-rv/index>`: ``rv-virt/citest64``
- :doc:`risc-v/qemu-rv </platforms/risc-v/qemu-rv/index>`: ``rv-virt/citest``
diff --git a/tools/ci/cirun.sh b/tools/ci/cirun.sh
deleted file mode 100755
index e4f170acb59..00000000000
--- a/tools/ci/cirun.sh
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/usr/bin/env bash
-############################################################################
-# tools/ci/cirun.sh
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership. The
-# ASF licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the
-# License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-#
-############################################################################
-
-set -e
-set -o xtrace
-
-WD=$(cd $(dirname $0) && pwd)
-WORKSPACE=$(cd $WD/../../../../../../../ && pwd -P)
-nuttx=$WORKSPACE/nuttx
-logs=${WD}/logs
-BOARD=`echo $WD |awk -F '/' '{print $(NF-2)}'`
-
-echo $WD
-echo $WORKSPACE
-
-config=$(basename $WD)
-if [ "$BOARD" == "sim" ]; then
- target="sim"
- mark="common or ${BOARD}"
-else
- if [ "${config:$((-2))}" == "64" ]; then
- BOARD="${BOARD}64"
- fi
- if [ "$BOARD" == "rv-virt" ]; then
- target="qemu"
- mark="qemu or rv_virt"
- else
- target="qemu"
- mark=$target
- fi
-fi
-
-core=$target
-image=`find ${nuttx} -type f -name 'nuttx'`
-path=${image%/*}
-cd ${nuttx}/tools/ci/testrun/script
-python3 -m pytest -m "${mark}" ./ -B ${BOARD} -P ${path} -L ${logs}/${BOARD}/${core} -R ${target} -C --json=${logs}/${BOARD}/${core}/pytest.json
-ret="$?"
-
-#clean
-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 -f ${nuttx}/fatfs.img
-
-
-echo $ret
-exit $ret
diff --git a/tools/ci/testrun/README.md b/tools/ci/testrun/README.md
deleted file mode 100644
index baf14ba6645..00000000000
--- a/tools/ci/testrun/README.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# Requirements
-- Python 3.6 or above
-- pexpect + minicom
-- pytest
-```bash
-sudo apt-get install minicom
-cd env
-pip3 install -r requirements.txt
-```
-# Pytest Original Parameter usage refer to help
-# Customized Parameters
-```bash
-pytest
- -D specify device, for example: /dev/ttyUSB0
- -B specify board, for example: sim,best1600_ep
- -P specify nuttx path
- -F specify filesystem, for example: /data
- -L specify log path
- -O specify ota version, for example: VELA-2.0
- -S enable sudo as run sim
- -C enable pre-checkin run
- -U specify core: ap, audio, cp, sensor, tee
- -M serial or minicom
- -R specify target type: target|sim|qemu|module
-
-```
-# Example
-```bash
-cd script
-# testsuite
-pytest test_[testsuite].py -D /dev/ttyUSBx -B <board> -L <logpath> -F <filesystem folder> -P <nuttx path> -R <target|sim|qemu|module>
-# mark
-pytest -m <mark_name> ./ -D /dev/ttyUSBx -B <board> -L <logpath> -F <filesystem folder> -P <nuttx path> -R <target|sim|qemu|module> --json=<logpath>/pytest.json
-# sim
-pytest -m sim ./ -B sim -P <nuttx path> -L <logpath> -F <filesystem folder> -P <nuttx path> -R <target|sim|qemu|module> --json=<logpath>/pytest.json
-# stress test
-pytest -m miwear ./ -B miwear -P <nuttx path> -L <logpath> -F <filesystem path> --json=<logpath>/pytest.json --count=100 --repeat-scope=session
-```
-# Generate Report
-```bash
-cd utils/report
-python3 report_gen.py -l <json log path> -b <branch>
-```
diff --git a/tools/ci/testrun/env/requirements.txt b/tools/ci/testrun/env/requirements.txt
deleted file mode 100644
index 2cf477de497..00000000000
--- a/tools/ci/testrun/env/requirements.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-pexpect==4.8.0
-pytest==6.2.5
-pytest-repeat==0.9.1
-pytest-json==0.4.0
-pytest-ordering==0.6
-pyserial==3.5
diff --git a/tools/ci/testrun/pytest.ini b/tools/ci/testrun/pytest.ini
deleted file mode 100644
index 11b9bb8ff39..00000000000
--- a/tools/ci/testrun/pytest.ini
+++ /dev/null
@@ -1,18 +0,0 @@
-# pytest.ini
-[pytest]
-# -p : Disable warning capture -p no:warnings
-# -s : Capture print of the script
-# -v : --verbose
-# --html=../report/reports.html --self-contained-html
-# --alluredir=../report/allure
-# --count=5 --repeat-scope=session
-# --capture=sys
-# --json=pytest_ota_m33.json
-addopts = -sv --capture=sys
-
-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/__init__.py b/tools/ci/testrun/script/__init__.py
deleted file mode 100644
index 40a7968deda..00000000000
--- a/tools/ci/testrun/script/__init__.py
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env python3
-############################################################################
-# tools/ci/testrun/script/__init__.py
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership. The
-# ASF licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the
-# License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-#
-############################################################################
-# encoding: utf-8
diff --git a/tools/ci/testrun/script/conftest.py b/tools/ci/testrun/script/conftest.py
deleted file mode 100644
index 1a5437c09d3..00000000000
--- a/tools/ci/testrun/script/conftest.py
+++ /dev/null
@@ -1,156 +0,0 @@
-#!/usr/bin/env python3
-############################################################################
-# tools/ci/testrun/script/conftest.py
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership. The
-# ASF licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the
-# License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-#
-############################################################################
-# encoding: utf-8
-
-import pytest
-from utils.common import connectNuttx
-
-
-def pytest_addoption(parser):
- parser.addoption(
- "-D",
- action="store",
- default=None,
- help="specify device, for example: /dev/ttyUSB0",
- )
- parser.addoption(
- "-B", action="store", default="sim", help="specify board, for example: sim"
- )
- parser.addoption(
- "-P",
- action="store",
- default=None,
- help="specify vela path, for example: /home/root/vela",
- )
- parser.addoption(
- "-F",
- action="store",
- default="/data",
- help="specify filesystem, for example: /data or /tmp",
- )
- parser.addoption(
- "-L",
- action="store",
- default=None,
- help="specify log path, for example: /home/root/vela/logs",
- )
- parser.addoption("-O", action="store", default=None, help="specify ota version")
- parser.addoption(
- "-S", action="store_true", default=False, help="enable sudo as run sim"
- )
- parser.addoption(
- "-C", action="store_true", default=False, help="enable pre-checkin run"
- )
- parser.addoption(
- "-U",
- action="store",
- default=None,
- help="specify core: ap, audio, cp, sensor, tee",
- )
- parser.addoption(
- "-M",
- action="store",
- default="minicom",
- help="serial open method:serial or minicom",
- )
- parser.addoption(
- "-R",
- action="store",
- default="sim",
- help="specify the target type: target|qemu|sim|module, default is sim",
- )
-
-
-@pytest.fixture(scope="session")
-def get_option(pytestconfig):
- dev = pytestconfig.getoption("-D")
- board = pytestconfig.getoption("-B")
- vela_path = pytestconfig.getoption("-P")
- fs = pytestconfig.getoption("-F")
- log_path = pytestconfig.getoption("-L")
- ota_version = pytestconfig.getoption("-O")
- sudo = pytestconfig.getoption("-S")
- ci = pytestconfig.getoption("-C")
- core = pytestconfig.getoption("-U")
- method = pytestconfig.getoption("-M")
- target = pytestconfig.getoption("-R")
- yield dev, board, vela_path, fs, log_path, ota_version, core, sudo, ci, method, target
-
-
-@pytest.fixture(scope="session", name="p")
-def connect_nuttx_session(get_option):
- (
- dev,
- board,
- vela_path,
- fs,
- log_path,
- ota_version,
- core,
- sudo,
- ci,
- method,
- target,
- ) = get_option
- print(get_option)
- p = connectNuttx(
- board, vela_path, dev, log_path, fs, ota_version, core, sudo, ci, method, target
- )
- p.setup()
- yield p
- p.cleanup()
-
-
-@pytest.fixture(scope="function", autouse=True)
-def do_free_ps(request, p):
- if "disable_autouse" in request.keywords:
- yield
- else:
- yield
- p.sendCommand("free", "total", flag=">")
- p.sendCommand("ps", "PID", flag=">")
- p.sendCommand("ls %s" % p.fs, flag=">")
-
-
-@pytest.fixture(scope="function", name="pp")
-def connect_nuttx_function(get_option):
- (
- dev,
- board,
- vela_path,
- fs,
- log_path,
- ota_version,
- core,
- sudo,
- ci,
- method,
- target,
- ) = get_option
- print(get_option)
- p = connectNuttx(
- board, vela_path, dev, log_path, fs, ota_version, core, sudo, ci, method, target
- )
- p.setup()
- yield p
- # p.cleanup()
diff --git a/tools/ci/testrun/script/test_example/__init__.py b/tools/ci/testrun/script/test_example/__init__.py
deleted file mode 100644
index 639ad6b8e42..00000000000
--- a/tools/ci/testrun/script/test_example/__init__.py
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env python3
-############################################################################
-# tools/ci/testrun/script/text_example/__init__.py
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership. The
-# ASF licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the
-# License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-#
-############################################################################
-# encoding: utf-8
diff --git a/tools/ci/testrun/script/test_example/test_example.py b/tools/ci/testrun/script/test_example/test_example.py
deleted file mode 100644
index a8ba7c28f3e..00000000000
--- a/tools/ci/testrun/script/test_example/test_example.py
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/env python3
-############################################################################
-# tools/ci/testrun/script/text_example/test_example.py
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership. The
-# ASF licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the
-# License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-#
-############################################################################
-# encoding: utf-8
-import pytest
-
-pytestmark = [pytest.mark.common, pytest.mark.qemu]
-
-
-def test_hello(p):
- ret = p.sendCommand("hello", "Hello, World!!")
- assert ret == 0
-
-
-def test_helloxx(p):
- ret = p.sendCommand("helloxx", "Hello, World!!")
- assert ret == 0
-
-
-def test_pipe(p):
- ret = p.sendCommand("pipe", "redirect_reader: Returning success", timeout=60)
- assert ret == 0
-
-
-def test_popen(p):
- ret = p.sendCommand("popen", "Calling pclose()")
- assert ret == 0
-
-
-def test_usrsocktest(p):
- ret = p.sendCommand("usrsocktest", "FAILED:0", timeout=60)
- assert ret == 0
diff --git a/tools/ci/testrun/script/test_framework/__init__.py b/tools/ci/testrun/script/test_framework/__init__.py
deleted file mode 100644
index 3bccccefb9d..00000000000
--- a/tools/ci/testrun/script/test_framework/__init__.py
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/python3
-############################################################################
-# tools/ci/testrun/script/test_framework/__init__.py
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership. The
-# ASF licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the
-# License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-#
-############################################################################
-# encoding: utf-8
diff --git a/tools/ci/testrun/script/test_framework/test_cmocka.py b/tools/ci/testrun/script/test_framework/test_cmocka.py
deleted file mode 100644
index 5b66faf8310..00000000000
--- a/tools/ci/testrun/script/test_framework/test_cmocka.py
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/usr/bin/python3
-############################################################################
-# tools/ci/testrun/script/test_framework/test_cmocka.py
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership. The
-# ASF licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the
-# License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-#
-############################################################################
-# encoding: utf-8
-
-import os
-
-import pytest
-
-pytestmark = [pytest.mark.common, pytest.mark.rv_virt]
-
-cmocka_list_start = "cmocka_list_start"
-cmocka_list_end = "cmocka_list_end"
-cmocka_test_start = "cmocka_test_start"
-cmocka_test_end = "cmocka_test_end"
-
-
-@pytest.mark.run(order=1)
-def test_cmocka(p):
- if p.board == "sim":
- os.mkdir("./test")
- ret = p.sendCommand("mount -t hostfs -o fs=./test /data")
- if p.board == "rv-virt":
- ret = p.sendCommand("mount -t vfat /dev/virtblk0 /data")
-
- p.sendCommand(f"echo {cmocka_list_start}")
- p.sendCommand("cmocka --list", "Cmocka Test Completed")
- p.sendCommand(f"echo {cmocka_list_end}")
-
- p.sendCommand(f"echo {cmocka_test_start}")
- ret = p.sendCommand(
- "cmocka --skip drivertest_pm|drivertest_posix_timer|drivertest_block*|"
- "test_playback.*|test_interaction.*|test_stress.*|test_capture.*",
- "Cmocka Test Completed",
- timeout=1200,
- )
- p.sendCommand(f"echo {cmocka_test_end}")
-
- if p.board == "sim":
- os.rmdir("./test")
-
- assert ret == 0
diff --git a/tools/ci/testrun/script/test_libuv/__init__.py b/tools/ci/testrun/script/test_libuv/__init__.py
deleted file mode 100644
index 17769f505d0..00000000000
--- a/tools/ci/testrun/script/test_libuv/__init__.py
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/python3
-############################################################################
-# tools/ci/testrun/script/test_libuv/__init__.py
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership. The
-# ASF licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the
-# License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-#
-############################################################################
-# encoding: utf-8
diff --git a/tools/ci/testrun/script/test_libuv/test_libuv.py b/tools/ci/testrun/script/test_libuv/test_libuv.py
deleted file mode 100644
index 61aae062d6b..00000000000
--- a/tools/ci/testrun/script/test_libuv/test_libuv.py
+++ /dev/null
@@ -1,448 +0,0 @@
-#!/usr/bin/python3
-############################################################################
-# tools/ci/testrun/script/test_libuv/test_libuv.py
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership. The
-# ASF licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the
-# License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-#
-############################################################################
-# encoding: utf-8
-
-import pytest
-
-
-class TestLibuv:
- pytestmark = [pytest.mark.sim]
-
- def test_test_macros(self, p):
- ret = p.sendCommand(
- "uv_run_tests test_macros", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_close_order(self, p):
- ret = p.sendCommand(
- "uv_run_tests close_order", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_run_once(self, p):
- ret = p.sendCommand(
- "uv_run_tests run_once", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_run_nowait(self, p):
- ret = p.sendCommand(
- "uv_run_tests run_nowait", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_loop_alive(self, p):
- ret = p.sendCommand(
- "uv_run_tests loop_alive", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_loop_close(self, p):
- ret = p.sendCommand(
- "uv_run_tests loop_close", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_loop_instant_close(self, p):
- ret = p.sendCommand(
- "uv_run_tests loop_instant_close", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_loop_stop(self, p):
- ret = p.sendCommand(
- "uv_run_tests loop_stop", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_loop_backend_timeout(self, p):
- ret = p.sendCommand(
- "uv_run_tests loop_backend_timeout", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_default_loop_close(self, p):
- ret = p.sendCommand(
- "uv_run_tests default_loop_close", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_barrier_1(self, p):
- ret = p.sendCommand(
- "uv_run_tests barrier_1", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_barrier_2(self, p):
- ret = p.sendCommand(
- "uv_run_tests barrier_2", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_barrier_3(self, p):
- ret = p.sendCommand(
- "uv_run_tests barrier_3", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_barrier_serial_thread(self, p):
- ret = p.sendCommand(
- "uv_run_tests barrier_serial_thread", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_barrier_serial_thread_single(self, p):
- ret = p.sendCommand(
- "uv_run_tests barrier_serial_thread_single",
- ["not ok 1 -", "ok 1 -"],
- timeout=10,
- )
- assert ret == 1
-
- def test_condvar_1(self, p):
- ret = p.sendCommand(
- "uv_run_tests condvar_1", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_condvar_2(self, p):
- ret = p.sendCommand(
- "uv_run_tests condvar_2", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_condvar_3(self, p):
- ret = p.sendCommand(
- "uv_run_tests condvar_3", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_condvar_4(self, p):
- ret = p.sendCommand(
- "uv_run_tests condvar_4", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_condvar_5(self, p):
- ret = p.sendCommand(
- "uv_run_tests condvar_5", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_semaphore_1(self, p):
- ret = p.sendCommand(
- "uv_run_tests semaphore_1", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_semaphore_2(self, p):
- ret = p.sendCommand(
- "uv_run_tests semaphore_2", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_semaphore_3(self, p):
- ret = p.sendCommand(
- "uv_run_tests semaphore_3", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_timer(self, p):
- ret = p.sendCommand("uv_run_tests timer", ["not ok 1 -", "ok 1 -"], timeout=10)
- assert ret == 1
-
- def test_timer_init(self, p):
- ret = p.sendCommand(
- "uv_run_tests timer_init", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_timer_again(self, p):
- ret = p.sendCommand(
- "uv_run_tests timer_again", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_timer_start_twice(self, p):
- ret = p.sendCommand(
- "uv_run_tests timer_start_twice", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_timer_order(self, p):
- ret = p.sendCommand(
- "uv_run_tests timer_order", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_timer_huge_timeout(self, p):
- ret = p.sendCommand(
- "uv_run_tests timer_huge_timeout", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_timer_huge_repeat(self, p):
- ret = p.sendCommand(
- "uv_run_tests timer_huge_repeat", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_timer_run_once(self, p):
- ret = p.sendCommand(
- "uv_run_tests timer_run_once", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_timer_from_check(self, p):
- ret = p.sendCommand(
- "uv_run_tests timer_from_check", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_timer_is_closing(self, p):
- ret = p.sendCommand(
- "uv_run_tests timer_is_closing", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_timer_null_callback(self, p):
- ret = p.sendCommand(
- "uv_run_tests timer_null_callback", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_timer_early_check(self, p):
- ret = p.sendCommand(
- "uv_run_tests timer_early_check", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_loop_handles(self, p):
- ret = p.sendCommand(
- "uv_run_tests loop_handles", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_walk_handles(self, p):
- ret = p.sendCommand(
- "uv_run_tests walk_handles", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_active(self, p):
- ret = p.sendCommand("uv_run_tests active", ["not ok 1 -", "ok 1 -"], timeout=10)
- assert ret == 1
-
- def test_embed(self, p):
- if p.board in ["sim"]:
- pytest.skip("unsupported at %s" % p.board)
- ret = p.sendCommand("uv_run_tests embed", ["not ok 1 -", "ok 1 -"], timeout=10)
- assert ret == 1
-
- @pytest.mark.skip(reason="VELAPLATFO-6346")
- def test_async(self, p):
- if p.ci:
- pytest.skip("unsupported at %s" % p.board)
- if p.board in ["sim", "vela"]:
- pytest.skip("unsupported at %s" % p.board)
- ret = p.sendCommand("uv_run_tests async", ["not ok 1 -", "ok 1 -"], timeout=10)
- assert ret == 1
-
- def test_async_null_cb(self, p):
- if p.ci:
- pytest.skip("unsupported at %s" % p.board)
- if p.board in ["sim", "vela"]:
- pytest.skip("unsupported at %s" % p.board)
- ret = p.sendCommand(
- "uv_run_tests async_null_cb", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_homedir(self, p):
- ret = p.sendCommand(
- "uv_run_tests homedir", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_tmpdir(self, p):
- ret = p.sendCommand("uv_run_tests tmpdir", ["not ok 1 -", "ok 1 -"], timeout=10)
- assert ret == 1
-
- def test_hrtime(self, p):
- ret = p.sendCommand("uv_run_tests hrtime", ["not ok 1 -", "ok 1 -"], timeout=25)
- assert ret == 1
-
- def test_gettimeofday(self, p):
- ret = p.sendCommand(
- "uv_run_tests gettimeofday", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_poll_oob(self, p):
- if p.board in ["sim"]:
- pytest.skip("unsupported at %s" % p.board)
- ret = p.sendCommand(
- "uv_run_tests poll_oob", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_threadpool_queue_work_simple(self, p):
- ret = p.sendCommand(
- "uv_run_tests threadpool_queue_work_simple",
- ["not ok 1 -", "ok 1 -"],
- timeout=10,
- )
- assert ret == 1
-
- def test_threadpool_queue_work_einval(self, p):
- ret = p.sendCommand(
- "uv_run_tests threadpool_queue_work_einval",
- ["not ok 1 -", "ok 1 -"],
- timeout=10,
- )
- assert ret == 1
-
- def test_threadpool_cancel_getnameinfo(self, p):
- ret = p.sendCommand(
- "uv_run_tests threadpool_cancel_getnameinfo",
- ["not ok 1 -", "ok 1 -"],
- timeout=10,
- )
- assert ret == 1
-
- def test_threadpool_cancel_random(self, p):
- ret = p.sendCommand(
- "uv_run_tests threadpool_cancel_random",
- ["not ok 1 -", "ok 1 -"],
- timeout=10,
- )
- assert ret == 1
-
- def test_threadpool_cancel_work(self, p):
- ret = p.sendCommand(
- "uv_run_tests threadpool_cancel_work", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_threadpool_cancel_single(self, p):
- ret = p.sendCommand(
- "uv_run_tests threadpool_cancel_single",
- ["not ok 1 -", "ok 1 -"],
- timeout=10,
- )
- assert ret == 1
-
- def test_thread_local_storage(self, p):
- ret = p.sendCommand(
- "uv_run_tests thread_local_storage", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_thread_stack_size(self, p):
- ret = p.sendCommand(
- "uv_run_tests thread_stack_size", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_thread_mutex(self, p):
- ret = p.sendCommand(
- "uv_run_tests thread_mutex", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_thread_mutex_recursive(self, p):
- ret = p.sendCommand(
- "uv_run_tests thread_mutex_recursive", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_thread_rwlock(self, p):
- ret = p.sendCommand(
- "uv_run_tests thread_rwlock", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_thread_rwlock_trylock(self, p):
- ret = p.sendCommand(
- "uv_run_tests thread_rwlock_trylock", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_thread_create(self, p):
- ret = p.sendCommand(
- "uv_run_tests thread_create", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_thread_equal(self, p):
- ret = p.sendCommand(
- "uv_run_tests thread_equal", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_queue_foreach_delete(self, p):
- ret = p.sendCommand(
- "uv_run_tests queue_foreach_delete", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_random_async(self, p):
- if p.ci:
- pytest.skip("unsupported at %s" % p.board)
- ret = p.sendCommand(
- "uv_run_tests random_async", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_random_sync(self, p):
- if p.ci:
- pytest.skip("unsupported at %s" % p.board)
- ret = p.sendCommand(
- "uv_run_tests random_sync", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_handle_type_name(self, p):
- ret = p.sendCommand(
- "uv_run_tests handle_type_name", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_req_type_name(self, p):
- ret = p.sendCommand(
- "uv_run_tests req_type_name", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_utf8_decode1(self, p):
- ret = p.sendCommand(
- "uv_run_tests utf8_decode1", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
-
- def test_utf8_decode1_overrun(self, p):
- ret = p.sendCommand(
- "uv_run_tests utf8_decode1_overrun", ["not ok 1 -", "ok 1 -"], timeout=10
- )
- assert ret == 1
diff --git a/tools/ci/testrun/script/test_open_posix/__init__.py b/tools/ci/testrun/script/test_open_posix/__init__.py
deleted file mode 100644
index 7930aa0d737..00000000000
--- a/tools/ci/testrun/script/test_open_posix/__init__.py
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/python3
-############################################################################
-# tools/ci/testrun/script/test_open_posix/__init__.py
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership. The
-# ASF licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the
-# License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-#
-############################################################################
-# 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
deleted file mode 100644
index bd9ee6ad78c..00000000000
--- a/tools/ci/testrun/script/test_open_posix/test_openposix_.py
+++ /dev/null
@@ -1,11205 +0,0 @@
-#!/usr/bin/python3
-############################################################################
-# tools/ci/testrun/script/test_open_posix/test_openposix_.py
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership. The
-# ASF licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the
-# License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-#
-############################################################################
-# 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_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", "skipped"],
- 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 fail on invalid"], 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):
... 3334 lines suppressed ...