projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb23982
)
test/common: avoid double // in path
author
Ran Benita
<ran@unusedvar.com>
Sat, 28 Dec 2019 11:40:38 +0000
(13:40 +0200)
committer
Ran Benita
<ran@unusedvar.com>
Sat, 28 Dec 2019 11:40:38 +0000
(13:40 +0200)
Signed-off-by: Ran Benita <ran@unusedvar.com>
test/common.c
patch
|
blob
|
history
diff --git
a/test/common.c
b/test/common.c
index
e397e12
..
1a56521
100644
(file)
--- a/
test/common.c
+++ b/
test/common.c
@@
-171,7
+171,8
@@
test_get_path(const char *path_rel)
if (path_rel[0] == '/')
return strdup(path_rel);
- ret = asprintf(&path, "%s/test/data/%s", srcdir, path_rel);
+ ret = asprintf(&path, "%s/test/data%s%s", srcdir,
+ path_rel[0] ? "/" : "", path_rel);
if (ret < 0) {
fprintf(stderr, "Failed to allocate path for %s\n", path_rel);
return NULL;