Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: suppress ERROR messages when irrelevant to the test result #6063

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/test/obj_tx_locks/TEST1
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
4 changes: 2 additions & 2 deletions src/test/out_err_mt/TEST1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2015-2023, Intel Corporation
# Copyright 2015-2024, Intel Corporation
#

#
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/test/out_err_mt/TEST2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2015-2023, Intel Corporation
# Copyright 2015-2024, Intel Corporation
#

#
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/test/util_ctl/TEST0
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
4 changes: 2 additions & 2 deletions src/test/util_ctl/TEST1
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Loading