Skip to content

Commit

Permalink
Merge pull request #273 from Yaskawa-Global/vs_dont_build_fjt_tests
Browse files Browse the repository at this point in the history
Prevent building FJT tests stand-alone
  • Loading branch information
ted-miller committed Jul 1, 2024
2 parents b54abf3 + 75de7fd commit a1c9b5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/ActionServer_FJT.c
Original file line number Diff line number Diff line change
Expand Up @@ -864,4 +864,6 @@ void Ros_ActionServer_FJT_ProcessResult()


//included here as this tests 'static' functions
#define MOTOROS2_INCLUDE_TESTS_FJT_C
#include "Tests_ActionServer_FJT.c"
#undef MOTOROS2_INCLUDE_TESTS_FJT_C
4 changes: 2 additions & 2 deletions src/Tests_ActionServer_FJT.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// SPDX-License-Identifier: Apache-2.0


#ifdef MOTOROS2_TESTING_ENABLE
#if defined(MOTOROS2_TESTING_ENABLE) && defined(MOTOROS2_INCLUDE_TESTS_FJT_C)

#include "MotoROS.h"
#include <control_msgs/msg/joint_tolerance.h>
Expand Down Expand Up @@ -714,4 +714,4 @@ BOOL Ros_Testing_ActionServer_FJT()
return bSuccess;
}

#endif //MOTOROS2_TESTING_ENABLE
#endif //#if defined(MOTOROS2_TESTING_ENABLE) && defined(MOTOROS2_INCLUDE_TESTS_FJT_C)

0 comments on commit a1c9b5b

Please sign in to comment.