Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.
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
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
14 changes: 14 additions & 0 deletions tests/pool/pool_9.cmake
Original file line number Diff line number Diff line change
@@ -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()
2 changes: 2 additions & 0 deletions tests/pool/pool_9_none.out.match
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$(nW)testfile: file size $(N) mode $(N)
$(nW)testfile: pool::create: Failed creating pool: $(*)