winmm/tests: Make it clear that no msrle.avi file is needed for the standard tests.
Francois Gouget
fgouget at free.fr
Thu Sep 22 05:37:34 CDT 2011
Accordingly, don't skip() if it is missing.
---
dlls/winmm/tests/mmio.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/dlls/winmm/tests/mmio.c b/dlls/winmm/tests/mmio.c
index e175083..ea8faed 100644
--- a/dlls/winmm/tests/mmio.c
+++ b/dlls/winmm/tests/mmio.c
@@ -74,7 +74,7 @@ static void test_mmioDescend(char *fname)
hmmio = mmioOpen(fname, &mmio, MMIO_READ);
if (fname && !hmmio)
{
- skip("%s file is missing, skipping the test\n", fname);
+ trace("No optional %s file. Skipping the test\n", fname);
return;
}
ok(hmmio != 0, "mmioOpen error %u\n", mmio.wErrorRet);
@@ -241,7 +241,7 @@ static void test_mmioOpen(char *fname)
hmmio = mmioOpen(fname, &mmio, MMIO_READ);
if (fname && !hmmio)
{
- skip("%s file is missing, skipping the test\n", fname);
+ trace("No optional %s file. Skipping the test\n", fname);
return;
}
ok(hmmio != 0, "mmioOpen error %u\n", mmio.wErrorRet);
@@ -494,7 +494,7 @@ static void test_mmioSetBuffer(char *fname)
hmmio = mmioOpen(fname, &mmio, MMIO_READ);
if (fname && !hmmio)
{
- skip("%s file is missing, skipping the test\n", fname);
+ trace("No optional %s file. Skipping the test\n", fname);
return;
}
ok(hmmio != 0, "mmioOpen error %u\n", mmio.wErrorRet);
@@ -671,6 +671,10 @@ static void test_mmioOpen_fourcc(void)
START_TEST(mmio)
{
+ /* Make it possible to run the tests against a specific AVI file in
+ * addition to the builtin test data. This is mostly meant as a
+ * debugging aid and is not part of the standard tests.
+ */
char fname[] = "msrle.avi";
test_mmioDescend(NULL);
--
1.7.5.4
More information about the wine-patches
mailing list