Skip to content

Commit 4264330

Browse files
Michael Haberlerzultron
Michael Haberler
authored andcommitted
tests/rtapi_printf.0: enable for kbuilds only
1 parent 23fea93 commit 4264330

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Diff for: src/rtapi/Submakefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,14 @@ endif # BUILD_SYS == kbuild
131131
$(call TOOBJSDEPS, $(ULAPI_SRCS)): EXTRAFLAGS += -fPIC $(RT_CFLAGS)
132132

133133

134+
ifeq ($(BUILD_SYS),kbuild)
135+
134136
TEST_RTAPI_VSNPRINTF_SRCS := rtapi/test_rtapi_vsnprintf.c
135137
USERSRCS += $(TEST_RTAPI_VSNPRINTF_SRCS)
136138
$(call TOOBJSDEPS, $(TEST_RTAPI_VSNPRINTF_SRCS)): EXTRAFLAGS += -DSIM
137139
../bin/test_rtapi_vsnprintf: $(call TOOBJS, $(TEST_RTAPI_VSNPRINTF_SRCS))
138140
$(ECHO) Linking $(notdir $@)
139141
@$(CXX) -rdynamic $(LDFLAGS) -o $@ $^
140-
TARGETS += ../bin/test_rtapi_vsnprintf
141142

143+
TARGETS += ../bin/test_rtapi_vsnprintf
144+
endif

Diff for: tests/rtapi_printf.0/test.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
#!/bin/sh
2-
test_rtapi_vsnprintf
2+
if test -x ../../bin/test_rtapi_vsnprintf
3+
then
4+
test_rtapi_vsnprintf
5+
else
6+
exit 0
7+
fi

0 commit comments

Comments
 (0)