13
0
geforkt von Mirrors/Velocity

Native tests should only run on Linux

Dieser Commit ist enthalten in:
Andrew Steinborn 2020-05-25 13:29:02 -04:00
Ursprung 62d3f61a77
Commit ae8852dc9d

Datei anzeigen

@ -33,13 +33,13 @@ class VelocityCompressorTest {
} }
@Test @Test
@EnabledOnOs({MAC, LINUX}) @EnabledOnOs({LINUX})
void sanityCheckNative() { void sanityCheckNative() {
assertThrows(IllegalArgumentException.class, () -> Natives.compress.get().create(-42)); assertThrows(IllegalArgumentException.class, () -> Natives.compress.get().create(-42));
} }
@Test @Test
@EnabledOnOs({MAC, LINUX}) @EnabledOnOs({LINUX})
void nativeIntegrityCheck() throws DataFormatException { void nativeIntegrityCheck() throws DataFormatException {
VelocityCompressor compressor = Natives.compress.get().create(Deflater.DEFAULT_COMPRESSION); VelocityCompressor compressor = Natives.compress.get().create(Deflater.DEFAULT_COMPRESSION);
if (compressor.preferredBufferType() != BufferPreference.DIRECT_REQUIRED) { if (compressor.preferredBufferType() != BufferPreference.DIRECT_REQUIRED) {