diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index f72331ac6d..0606944caa 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -181,6 +181,7 @@ add_test_generic(NAME pool CASE 7 TRACERS none) if (NOT WIN32) add_test_generic(NAME pool CASE 8 TRACERS none) endif() +add_test_generic(NAME pool CASE 9 TRACERS none) if(WIN32) build_test(pool_win pool/pool_win.cpp) diff --git a/tests/pool/pool_9.cmake b/tests/pool/pool_9.cmake new file mode 100644 index 0000000000..7bce5575a0 --- /dev/null +++ b/tests/pool/pool_9.cmake @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018-2021, Intel Corporation + +include(${SRC_DIR}/../helpers.cmake) + +setup() + +# double create +execute(${TEST_EXECUTABLE} c ${DIR}/testfile "test" 20 0600) +check_file_exists(${DIR}/testfile) + +execute(${TEST_EXECUTABLE} c ${DIR}/testfile "test" 20 0600) + +finish() diff --git a/tests/pool/pool_9_none.out.match b/tests/pool/pool_9_none.out.match new file mode 100644 index 0000000000..b97462704c --- /dev/null +++ b/tests/pool/pool_9_none.out.match @@ -0,0 +1,2 @@ +$(nW)testfile: file size $(N) mode $(N) +$(nW)testfile: pool::create: Failed creating pool: $(*)