Skip to content

Commit 671076b

Browse files
authored
Merge pull request #2177 from opensim-org/fix_testStorage_c3d_WITH_BTK
Do not test c3d reading if WITH_BTK=off.
2 parents 0658f23 + c3e5f8f commit 671076b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

OpenSim/Common/Test/testStorage.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,11 @@ int main() {
113113
// Verify the loading of marker data (14 markers) from .trc into a Storage
114114
SimTK_SUBTEST2(testStorageLoadingFromFile, "TRCFileWithNANs.trc", 43);
115115

116-
// Verify the loading of forces from .c3d into a Storage. Includes 2
117-
// force-plates with force, point, moment vectors (Vec3 flattened)
118-
SimTK_SUBTEST2(testStorageLoadingFromFile, "walking2.c3d", 3*6+1);
116+
#ifdef WITH_BTK
117+
// Verify the loading of forces from .c3d into a Storage. Includes 2
118+
// force-plates with force, point, moment vectors (Vec3 flattened)
119+
SimTK_SUBTEST2(testStorageLoadingFromFile, "walking2.c3d", 3*6+1);
120+
#endif
119121

120122
SimTK_SUBTEST(testStorageLegacy);
121123
SimTK_END_TEST();

0 commit comments

Comments
 (0)