Tests: skip NSData gzip tests without zlib

This commit is contained in:
Frederik Seiffert 2021-08-07 15:37:41 +02:00 committed by Frederik Seiffert
parent 3b8009654c
commit 852ec7be7d

View file

@ -1,12 +1,14 @@
#import <Foundation/Foundation.h>
#import "Testing.h"
#import "GNUstepBase/GSConfig.h"
#import <GNUstepBase/NSData+GNUstepBase.h>
int main()
{
NSAutoreleasePool *arp = [NSAutoreleasePool new];
#if USE_ZLIB
NSData *data;
NSData *ref;
NSUInteger last;
@ -62,6 +64,9 @@ int main()
PASS(NO == [data isGzipped], "Complete gunzip is not gzipped");
PASS(0 == [data length], "Complete gunzip is empty");
#else
SKIP("zlib support disabled");
#endif
[arp release]; arp = nil;
return 0;