mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Tests: skip NSData gzip tests without zlib
This commit is contained in:
parent
3b8009654c
commit
852ec7be7d
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue