geforkt von Mirrors/Velocity
Native tests should only run on Linux
Dieser Commit ist enthalten in:
Ursprung
62d3f61a77
Commit
ae8852dc9d
@ -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) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren