Commit b2629e78 authored by Namhyung Kim's avatar Namhyung Kim Committed by Arnaldo Carvalho de Melo
Browse files

perf test: Skip dlfilter test for build failures



For some reason, it may fail to build the dlfilter.  Let's skip the test
as it's not an error in the perf.  This can happen when you run the perf
test without source code or in a different directory.

Reviewed-by: default avatarIan Rogers <irogers@google.com>
Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 9f8f5edc
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -70,15 +70,15 @@ test_dlfilter() {
	# Build the dlfilter
	if ! cc -c -I tools/perf/include -fpic -x c "${dlfilter_c}" -o "${dlfilter_so}.o"
	then
		echo "Basic --dlfilter test [Failed to build dlfilter object]"
		err=1
		echo "Basic --dlfilter test [Skip - failed to build dlfilter object]"
		err=2
		return
	fi

	if ! cc -shared -o "${dlfilter_so}" "${dlfilter_so}.o"
	then
		echo "Basic --dlfilter test [Failed to link dlfilter shared object]"
		err=1
		echo "Basic --dlfilter test [Skip - failed to link dlfilter shared object]"
		err=2
		return
	fi