magic: disable tests depending on magic version

Some tests depend on specific results by specific magic versions.
Disable these.
pull/1073/merge
Victor Julien 11 years ago
parent fe82a83e79
commit 6de34489b3

@ -242,7 +242,7 @@ end:
magic_close(magic_ctx); magic_close(magic_ctx);
return retval; return retval;
} }
#if 0
/** \test magic lib calls -- lookup */ /** \test magic lib calls -- lookup */
int MagicDetectTest02(void) int MagicDetectTest02(void)
{ {
@ -290,7 +290,7 @@ end:
magic_close(magic_ctx); magic_close(magic_ctx);
return retval; return retval;
} }
#endif
/** \test magic lib calls -- lookup */ /** \test magic lib calls -- lookup */
int MagicDetectTest03(void) int MagicDetectTest03(void)
{ {
@ -433,7 +433,7 @@ end:
MagicDeinit(); MagicDeinit();
return retval; return retval;
} }
#if 0
/** \test magic api calls -- lookup */ /** \test magic api calls -- lookup */
int MagicDetectTest06(void) int MagicDetectTest06(void)
{ {
@ -474,7 +474,7 @@ end:
MagicDeinit(); MagicDeinit();
return retval; return retval;
} }
#endif
/** \test magic api calls -- lookup */ /** \test magic api calls -- lookup */
int MagicDetectTest07(void) int MagicDetectTest07(void)
{ {
@ -661,11 +661,11 @@ void MagicRegisterTests(void)
UtRegisterTest("MagicInitTest01", MagicInitTest01, 1); UtRegisterTest("MagicInitTest01", MagicInitTest01, 1);
UtRegisterTest("MagicInitTest02", MagicInitTest02, 1); UtRegisterTest("MagicInitTest02", MagicInitTest02, 1);
UtRegisterTest("MagicDetectTest01", MagicDetectTest01, 1); UtRegisterTest("MagicDetectTest01", MagicDetectTest01, 1);
UtRegisterTest("MagicDetectTest02", MagicDetectTest02, 1); //UtRegisterTest("MagicDetectTest02", MagicDetectTest02, 1);
UtRegisterTest("MagicDetectTest03", MagicDetectTest03, 1); UtRegisterTest("MagicDetectTest03", MagicDetectTest03, 1);
UtRegisterTest("MagicDetectTest04", MagicDetectTest04, 1); UtRegisterTest("MagicDetectTest04", MagicDetectTest04, 1);
UtRegisterTest("MagicDetectTest05", MagicDetectTest05, 1); UtRegisterTest("MagicDetectTest05", MagicDetectTest05, 1);
UtRegisterTest("MagicDetectTest06", MagicDetectTest06, 1); //UtRegisterTest("MagicDetectTest06", MagicDetectTest06, 1);
UtRegisterTest("MagicDetectTest07", MagicDetectTest07, 1); UtRegisterTest("MagicDetectTest07", MagicDetectTest07, 1);
UtRegisterTest("MagicDetectTest08", MagicDetectTest08, 1); UtRegisterTest("MagicDetectTest08", MagicDetectTest08, 1);
/* fails in valgrind, somehow it returns different pointers then. /* fails in valgrind, somehow it returns different pointers then.

Loading…
Cancel
Save