Skip to content

Commit

Permalink
cii: Move test files out of src/
Browse files Browse the repository at this point in the history
  • Loading branch information
XuShaohua committed Nov 25, 2023
1 parent e830a9b commit 73af2d4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cii/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ target_include_directories(cii_static
)

add_executable(mem_test
src/mem_test.c
src/mem_test.h
tests/mem_test.c
tests/mem_test.h
)
target_link_libraries(mem_test
cii_static
)

add_executable(list_test
src/list_test.c
tests/list_test.c
)
target_link_libraries(list_test
cii_static
Expand Down
8 changes: 8 additions & 0 deletions cii/tests/get_word.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) 2023 Xu Shaohua <[email protected]>. All rights reserved.
// Use of this source is governed by GNU General Public License
// that can be found in the LICENSE file.

#ifndef CII_TESTS_GET_WORD_H_
#define CII_TESTS_GET_WORD_H_

#endif //CII_TESTS_GET_WORD_H_
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions cii/src/mem_test.h → cii/tests/mem_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source is governed by GNU General Public License
// that can be found in the LICENSE file.

#ifndef CII_SRC_MEM_TEST_H_
#define CII_SRC_MEM_TEST_H_
#ifndef CII_TESTS_MEM_TEST_H_
#define CII_TESTS_MEM_TEST_H_

#include <stdlib.h>

Expand Down Expand Up @@ -33,4 +33,4 @@ typedef struct descriptor_s descriptor_t;
*/
descriptor_t* find_node(const void* ptr);

#endif //CII_SRC_MEM_TEST_H_
#endif //CII_TESTS_MEM_TEST_H_

0 comments on commit 73af2d4

Please sign in to comment.