Native tests should only run on Linux

This commit is contained in:
Andrew Steinborn
2020-05-25 13:29:02 -04:00
parent 62d3f61a77
commit ae8852dc9d

View File

@@ -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) {