Skip to content

Commit

Permalink
DAOS-623 build: Fix SCons warning (daos-stack#1756)
Browse files Browse the repository at this point in the history
A file was being built twice as parts of different unit
test binaries.

Signed-off-by: Kris Jacque <[email protected]>
  • Loading branch information
kjacque authored and jolivier23 committed Jan 23, 2020
1 parent 7e5bc83 commit b4d85eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/common/tests/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,18 @@ def scons():
# The compiler decides this on its own, but let's force the issue.
unit_env.Append(CCFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0")

acl_api = unit_env.Object('../acl_api.c')

daos_build.test(unit_env, 'drpc_tests',
['drpc_tests.c', '../drpc.c', '../drpc.pb-c.c',
common_test_utils],
LIBS=['protobuf-c', 'daos_common', 'gurt', 'cmocka'])
daos_build.test(unit_env, 'acl_api_tests',
source=['acl_api_tests.c', '../acl_api.c',
source=['acl_api_tests.c', acl_api,
common_test_utils],
LIBS=['protobuf-c', 'daos_common', 'gurt', 'cmocka'])
daos_build.test(unit_env, 'acl_valid_tests',
source=['acl_valid_tests.c', '../acl_api.c',
source=['acl_valid_tests.c', acl_api,
common_test_utils],
LIBS=['protobuf-c', 'daos_common', 'gurt', 'cmocka'])
daos_build.test(unit_env, 'acl_util_tests',
Expand Down

0 comments on commit b4d85eb

Please sign in to comment.