commit 27ba5fe7e4ce4126adba08b2040f477efe20ac88
parent e16ce03196a7a42e94aaf2f2d0e2e15e7b9ae281
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 23 Nov 2015 10:36:48 +0100
Re-enable a RNG de-serialisation test on not CL compiler
Fix the wrong compile-time test which disabled the RNG de-serialisation
test for compilers that were not the CL compiler. Disable this test only
for the CL19 compiler.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test_ssp_rng.c b/src/test_ssp_rng.c
@@ -179,7 +179,7 @@ test_rng(const struct ssp_rng_type* type)
CHECK(ssp_rng_read(rng, NULL), RES_BAD_ARG);
CHECK(ssp_rng_read(NULL, stream), RES_BAD_ARG);
-#if defined(COMPILER_CL) && _MSC_VER!=1900
+#if !defined(COMPILER_CL) || _MSC_VER!=1900
/* Actually, this check works propertly with the CL compiler but will lead to
* an inexplicable error in the next check. It seems that reading from a
* stream in "w+" mode whose pointer is EOF corrupts the stream when the code