From 478a79e6860506990cfa90413ffdbb40d5c48228 Mon Sep 17 00:00:00 2001 From: Tomasz Gromadzki Date: Wed, 20 Mar 2024 15:30:54 +0100 Subject: [PATCH] test: suppress ERROR messages when irrelevant to the test result Suppress *ERROR* messages from stderr in tests that verify faulty situation based on function return value and errno value. These tests ignore stderr/stdout at all. This is to avoid a lot of unnecessary messages on the screen during tests execution. Signed-off-by: Tomasz Gromadzki --- src/test/obj_tx_locks/TEST1 | 4 ++-- src/test/out_err_mt/TEST1 | 4 ++-- src/test/out_err_mt/TEST2 | 4 ++-- src/test/util_ctl/TEST0 | 4 ++-- src/test/util_ctl/TEST1 | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/test/obj_tx_locks/TEST1 b/src/test/obj_tx_locks/TEST1 index 517832d1bb5..f0bbae0dedc 100755 --- a/src/test/obj_tx_locks/TEST1 +++ b/src/test/obj_tx_locks/TEST1 @@ -1,6 +1,6 @@ #!/usr/bin/env bash # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2015-2019, Intel Corporation +# Copyright 2015-2024, Intel Corporation # # src/test/obj_tx_locks/TEST1 -- unit test for transaction locks @@ -21,6 +21,6 @@ require_valgrind 3.10 configure_valgrind drd force-enable setup -expect_normal_exit ./obj_tx_locks$EXESUFFIX $DIR/testfile1 m +expect_normal_exit ./obj_tx_locks$EXESUFFIX $DIR/testfile1 m 2>/dev/null pass diff --git a/src/test/out_err_mt/TEST1 b/src/test/out_err_mt/TEST1 index f1f557f211b..81f09de12c9 100755 --- a/src/test/out_err_mt/TEST1 +++ b/src/test/out_err_mt/TEST1 @@ -1,6 +1,6 @@ #!/usr/bin/env bash # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2015-2023, Intel Corporation +# Copyright 2015-2024, Intel Corporation # # @@ -26,7 +26,7 @@ unset PMEM_LOG_FILE unset PMEMOBJ_LOG_FILE unset PMEMPOOL_LOG_FILE -expect_normal_exit ./out_err_mt$EXESUFFIX $DIR/testfile1 +expect_normal_exit ./out_err_mt$EXESUFFIX $DIR/testfile1 2>/dev/null check diff --git a/src/test/out_err_mt/TEST2 b/src/test/out_err_mt/TEST2 index 83bac1d3e38..fca512776bc 100755 --- a/src/test/out_err_mt/TEST2 +++ b/src/test/out_err_mt/TEST2 @@ -1,6 +1,6 @@ #!/usr/bin/env bash # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2015-2023, Intel Corporation +# Copyright 2015-2024, Intel Corporation # # @@ -24,7 +24,7 @@ unset PMEMOBJ_LOG_LEVEL unset PMEM_LOG_FILE unset PMEMOBJ_LOG_FILE -expect_normal_exit ./out_err_mt$EXESUFFIX $DIR/testfile1 +expect_normal_exit ./out_err_mt$EXESUFFIX $DIR/testfile1 2>/dev/null check diff --git a/src/test/util_ctl/TEST0 b/src/test/util_ctl/TEST0 index f721eea18ce..15784dd7eb4 100755 --- a/src/test/util_ctl/TEST0 +++ b/src/test/util_ctl/TEST0 @@ -1,6 +1,6 @@ #!/usr/bin/env bash # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2016-2023, Intel Corporation +# Copyright 2016-2024, Intel Corporation . ../unittest/unittest.sh @@ -10,6 +10,6 @@ set_test_labels fault_injection setup expect_normal_exit\ - ./util_ctl$EXESUFFIX $DIR/testconfig + ./util_ctl$EXESUFFIX $DIR/testconfig 2>/dev/null pass diff --git a/src/test/util_ctl/TEST1 b/src/test/util_ctl/TEST1 index 9df1d2a6bda..981e27f1ea1 100755 --- a/src/test/util_ctl/TEST1 +++ b/src/test/util_ctl/TEST1 @@ -1,6 +1,6 @@ #!/usr/bin/env bash # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2016-2023, Intel Corporation +# Copyright 2016-2024, Intel Corporation . ../unittest/unittest.sh @@ -12,6 +12,6 @@ configure_valgrind memcheck force-enable setup expect_normal_exit\ - ./util_ctl$EXESUFFIX $DIR/testconfig + ./util_ctl$EXESUFFIX $DIR/testconfig 2>/dev/null pass