selftests: fix prepending $(OUTPUT) to $(TEST_PROGS)
[linux-2.6-microblaze.git] / tools / testing / selftests / lib.mk
index a5ce26d..be17462 100644 (file)
@@ -74,7 +74,8 @@ ifdef building_out_of_srctree
                rsync -aq $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) $(OUTPUT); \
        fi
        @if [ "X$(TEST_PROGS)" != "X" ]; then \
-               $(call RUN_TESTS, $(TEST_GEN_PROGS) $(TEST_CUSTOM_PROGS) $(OUTPUT)/$(TEST_PROGS)) ; \
+               $(call RUN_TESTS, $(TEST_GEN_PROGS) $(TEST_CUSTOM_PROGS) \
+                                 $(addprefix $(OUTPUT)/,$(TEST_PROGS))) ; \
        else \
                $(call RUN_TESTS, $(TEST_GEN_PROGS) $(TEST_CUSTOM_PROGS)); \
        fi