winetest: Add a trace in the log when skipping a subtest.
This commit is contained in:
parent
9a6f5ad239
commit
aa424f8159
|
@ -575,8 +575,7 @@ get_subtests (const char *tempdir, struct wine_test *test, LPTSTR res_name)
|
||||||
test->subtests = heap_realloc (test->subtests,
|
test->subtests = heap_realloc (test->subtests,
|
||||||
allocated * sizeof(char*));
|
allocated * sizeof(char*));
|
||||||
}
|
}
|
||||||
if (!test_filtered_out( test->name, index ))
|
test->subtests[test->subtest_count++] = heap_strdup(index);
|
||||||
test->subtests[test->subtest_count++] = heap_strdup(index);
|
|
||||||
index = strtok (NULL, whitespace);
|
index = strtok (NULL, whitespace);
|
||||||
}
|
}
|
||||||
test->subtests = heap_realloc (test->subtests,
|
test->subtests = heap_realloc (test->subtests,
|
||||||
|
@ -592,14 +591,23 @@ get_subtests (const char *tempdir, struct wine_test *test, LPTSTR res_name)
|
||||||
static void
|
static void
|
||||||
run_test (struct wine_test* test, const char* subtest, HANDLE out_file, const char *tempdir)
|
run_test (struct wine_test* test, const char* subtest, HANDLE out_file, const char *tempdir)
|
||||||
{
|
{
|
||||||
int status;
|
|
||||||
const char* file = get_test_source_file(test->name, subtest);
|
const char* file = get_test_source_file(test->name, subtest);
|
||||||
char *cmd = strmake (NULL, "%s %s", test->exename, subtest);
|
|
||||||
|
|
||||||
xprintf ("%s:%s start %s -\n", test->name, subtest, file);
|
if (test_filtered_out( test->name, subtest ))
|
||||||
status = run_ex (cmd, out_file, tempdir, 120000);
|
{
|
||||||
heap_free (cmd);
|
report (R_STEP, "Skipping: %s:%s", test->name, subtest);
|
||||||
xprintf ("%s:%s done (%d)\n", test->name, subtest, status);
|
xprintf ("%s:%s skipped %s -\n", test->name, subtest, file);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
int status;
|
||||||
|
char *cmd = strmake (NULL, "%s %s", test->exename, subtest);
|
||||||
|
report (R_STEP, "Running: %s:%s", test->name, subtest);
|
||||||
|
xprintf ("%s:%s start %s -\n", test->name, subtest, file);
|
||||||
|
status = run_ex (cmd, out_file, tempdir, 120000);
|
||||||
|
heap_free (cmd);
|
||||||
|
xprintf ("%s:%s done (%d)\n", test->name, subtest, status);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL CALLBACK
|
static BOOL CALLBACK
|
||||||
|
@ -924,9 +932,7 @@ run_tests (char *logname, char *outdir)
|
||||||
|
|
||||||
for (j = 0; j < test->subtest_count; j++) {
|
for (j = 0; j < test->subtest_count; j++) {
|
||||||
if (aborting) break;
|
if (aborting) break;
|
||||||
report (R_STEP, "Running: %s:%s", test->name,
|
run_test (test, test->subtests[j], logfile, tempdir);
|
||||||
test->subtests[j]);
|
|
||||||
run_test (test, test->subtests[j], logfile, tempdir);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (test->maindllpath) {
|
if (test->maindllpath) {
|
||||||
|
|
Loading…
Reference in New Issue