Diff between 55dc79820f60577de3f64fd57bd3a7b1d07cd99a and 314f750c435496d41d83c5b5c7748922f4631191
Changed Files
| File | Additions | Deletions | Status |
| tools/test-runner.c | +2 | -1 | modified |
Full Patch
diff --git a/tools/test-runner.c b/tools/test-runner.c
index 604d98c..980cb36 100644
--- a/tools/test-runner.c
+++ b/tools/test-runner.c
@@ -215,7 +215,8 @@ static void start_qemu(void)
char **argv;
int i, pos;
- getcwd(cwd, sizeof(cwd));
+ if (!getcwd(cwd, sizeof(cwd)))
+ strcat(cwd, "/");
if (own_binary[0] == '/')
snprintf(initcmd, sizeof(initcmd), "%s", own_binary);