summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-02-20 18:53:52 +0100
committerMichael Schroeder <mls@suse.de>2012-02-20 18:53:52 +0100
commit527eab20fa8b5225b3c9d8420cfc09cd9965ceba (patch)
tree824628ed94da96c8f735388fc835114d1e0b3516
parent0a028057f4b916c9d68e1f8cd908b4e26bd3456d (diff)
downloadlibsolv-527eab20fa8b5225b3c9d8420cfc09cd9965ceba.tar.gz
libsolv-527eab20fa8b5225b3c9d8420cfc09cd9965ceba.tar.bz2
libsolv-527eab20fa8b5225b3c9d8420cfc09cd9965ceba.zip
- fix testcasedir handling
-rw-r--r--ext/testcase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/testcase.c b/ext/testcase.c
index 16159ef..6129657 100644
--- a/ext/testcase.c
+++ b/ext/testcase.c
@@ -1525,7 +1525,7 @@ testcase_read(Pool *pool, FILE *fp, char *testcase, Queue *job, char **resultp,
return 0;
}
testcasedir = solv_strdup(testcase);
- if ((s = strchr(testcasedir, '/')) != 0)
+ if ((s = strrchr(testcasedir, '/')) != 0)
s[1] = 0;
else
*testcasedir = 0;
@@ -1708,7 +1708,7 @@ testcase_read(Pool *pool, FILE *fp, char *testcase, Queue *job, char **resultp,
}
rdata = pool_tmpjoin(pool, testcasedir, pieces[2], 0);
- if (!strcmp(pieces[1], "<inline>"))
+ if (!strcmp(pieces[2], "<inline>"))
rfp = fp;
else
rfp = fopen(rdata, "r");