Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit b8baf9d

Browse files
Merge pull request #1055 from lukaszstolarczuk/add-create-pool-test
tests: add double-create test for pool
2 parents fbe4025 + 70aacb8 commit b8baf9d

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ add_test_generic(NAME pool CASE 7 TRACERS none)
181181
if (NOT WIN32)
182182
add_test_generic(NAME pool CASE 8 TRACERS none)
183183
endif()
184+
add_test_generic(NAME pool CASE 9 TRACERS none)
184185

185186
if(WIN32)
186187
build_test(pool_win pool/pool_win.cpp)

tests/pool/pool_9.cmake

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SPDX-License-Identifier: BSD-3-Clause
2+
# Copyright 2018-2021, Intel Corporation
3+
4+
include(${SRC_DIR}/../helpers.cmake)
5+
6+
setup()
7+
8+
# double create
9+
execute(${TEST_EXECUTABLE} c ${DIR}/testfile "test" 20 0600)
10+
check_file_exists(${DIR}/testfile)
11+
12+
execute(${TEST_EXECUTABLE} c ${DIR}/testfile "test" 20 0600)
13+
14+
finish()

tests/pool/pool_9_none.out.match

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
$(nW)testfile: file size $(N) mode $(N)
2+
$(nW)testfile: pool::create: Failed creating pool: $(*)

0 commit comments

Comments
 (0)