Diff between 9f4b2d0287ef1d4a70648250aeff0d8aa4f61ccc and 0640d99ebfaebe7b455a8bd35fefbb9a93485910

Changed Files

File Additions Deletions Status
tools/test-runner.c +5 -0 modified

Full Patch

diff --git a/tools/test-runner.c b/tools/test-runner.c
index 134e26f..ff5e198 100644
--- a/tools/test-runner.c
+++ b/tools/test-runner.c
@@ -912,6 +912,11 @@ static void run_command(char *cmdname, char *home)
 		audio_pid[0] = audio_pid[1] = -1;
 
 start_next:
+	if (!run_auto && !cmdname) {
+		fprintf(stderr, "Missing command argument\n");
+		return;
+	}
+
 	if (run_auto) {
 		if (chdir(home + 5) < 0) {
 			perror("Failed to change home test directory");