mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Remove warnings generated by tests.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33686 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b5d9750560
commit
6dfb591252
15 changed files with 30 additions and 16 deletions
17
ChangeLog
17
ChangeLog
|
@ -1,3 +1,20 @@
|
|||
2011-08-03 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Tests/base/NSMutableData/general.m
|
||||
* Tests/base/NSData/general.m
|
||||
* Tests/base/NSFileManager/unrepresentable_filenames.m
|
||||
* Tests/base/NSDate/create.m
|
||||
* Tests/base/GSMime/test01.m
|
||||
* Tests/base/Functions/runtime.m
|
||||
* Tests/base/NSInvocation/general.m
|
||||
* Tests/base/KVC/mutable.m
|
||||
* Tests/base/KVC/path.m
|
||||
* Tests/base/KVC/array.m
|
||||
* Tests/base/NSMapTable/create.m
|
||||
* Tests/base/NSHashTable/create.m
|
||||
* Tests/base/GenericTests/generic.m
|
||||
* Tests/base/NSBundle/resources.m: Remove warnings generated by tests.
|
||||
|
||||
2011-08-02 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Tests/base/NSJSONSerialization/json.m: Get it compile without
|
||||
|
|
|
@ -86,7 +86,6 @@ main(int argc, char *argv[])
|
|||
Ivar ivar;
|
||||
Ivar *ivars;
|
||||
unsigned int count;
|
||||
unsigned int index;
|
||||
Method method;
|
||||
Method *methods;
|
||||
Protocol **protocols;
|
||||
|
|
|
@ -13,7 +13,6 @@ int main()
|
|||
GSMimeHeader *hdr;
|
||||
NSString *val;
|
||||
NSString *raw;
|
||||
BOOL complete;
|
||||
|
||||
data = [@"Content-type: application/xxx\r\n" dataUsingEncoding: enc];
|
||||
PASS([parser parse:data] && [parser isInHeaders] && (doc != nil),
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
{
|
||||
return ([self isEqual:anObject] && [anObject isEqual:self]);
|
||||
}
|
||||
- (int) length
|
||||
- (NSUInteger) length
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -31,7 +31,6 @@ int main(int argc,char **argv)
|
|||
NSArray *ivar;
|
||||
ArrayIVar *aiv;
|
||||
NSString *plist;
|
||||
id tmp = nil;
|
||||
|
||||
array = [@"({value=10;},{value=12;})" propertyList];
|
||||
plist = @"{displayGroup={allObjects=({detailArray=({value=4;},{value=2;});},{detailArray=({value=8;},{value=10;});});};}";
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
#import "ObjectTesting.h"
|
||||
#import <Foundation/NSAutoreleasePool.h>
|
||||
#import <Foundation/NSKeyValueCoding.h>
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSSet.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface Observer : NSObject
|
||||
- (void) observeValueForKeyPath: (NSString *)keyPath
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
} else if ([key isEqualToString:@"Lücke"]) {
|
||||
return string;
|
||||
}
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
@ -103,7 +104,6 @@ int main(void) {
|
|||
DeprecatedCustomKVC * deprecated = [[[DeprecatedCustomKVC alloc] init]
|
||||
autorelease];
|
||||
NSNumber * n = [NSNumber numberWithInt:8];
|
||||
NSNumber * adjustedN = [NSNumber numberWithInt:7];
|
||||
NSNumber * n2 = [NSNumber numberWithDouble:87.999];
|
||||
|
||||
[tester setValue:n2 forKeyPath:@"child.num2"];
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#import "Testing.h"
|
||||
#import "generic.h"
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSAutoreleasePool.h>
|
||||
#import <Foundation/NSBundle.h>
|
||||
|
|
|
@ -10,7 +10,7 @@ int main()
|
|||
char *str1,*str2;
|
||||
NSData *data1, *data2;
|
||||
NSMutableData *mutable;
|
||||
unsigned char *hold;
|
||||
char *hold;
|
||||
|
||||
str1 = "Test string for data classes";
|
||||
str2 = (char *) malloc(sizeof("Test string for data classes not copied"));
|
||||
|
|
|
@ -3,12 +3,14 @@
|
|||
#import <Foundation/NSDate.h>
|
||||
#import <Foundation/NSCalendarDate.h>
|
||||
#import <Foundation/NSString.h>
|
||||
#import <Foundation/NSTimeZone.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
NSString *val;
|
||||
NSDate *date1,*date2;
|
||||
NSDate *date1;
|
||||
NSCalendarDate *date2;
|
||||
|
||||
val = @"2000-10-19 00:00:00 +0000";
|
||||
date1 = [NSDate date];
|
||||
|
|
|
@ -17,7 +17,7 @@ int main(int argc, char **argv)
|
|||
BOOL e,d;
|
||||
|
||||
files=[fm directoryContentsAtPath: @"."];
|
||||
printf("%i files\n",[files count]);
|
||||
printf("%lu files\n", (unsigned long)[files count]);
|
||||
for (i=0;i<[files count];i++)
|
||||
{
|
||||
int j;
|
||||
|
|
|
@ -6,7 +6,7 @@ int main()
|
|||
{
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
NSString *val1, *val2, *val3;
|
||||
NSHashTable *obj, *old;
|
||||
NSHashTable *obj;
|
||||
id vals[3];
|
||||
|
||||
val1 = @"Hello";
|
||||
|
|
|
@ -196,7 +196,7 @@ int main()
|
|||
TEST_INVOKE_ARG(@selector(loopLarge:),&lsarg);
|
||||
[inv getReturnValue:&lsret];
|
||||
PASS(lsret.i == 9 &&
|
||||
lsret.s == "Hello" &&
|
||||
strcmp(lsret.s, "Hello") == 0 &&
|
||||
lsret.f == 11.0,
|
||||
"Can send/return large structs");
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ int main()
|
|||
{
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
NSString *val1, *val2, *val3;
|
||||
NSMapTable *obj, *old;
|
||||
NSMapTable *obj;
|
||||
id vals[3];
|
||||
|
||||
val1 = @"Hello";
|
||||
|
|
|
@ -8,7 +8,7 @@ int main()
|
|||
{
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
char *str1,*str2,*tmp;
|
||||
NSData *data1, *data2;
|
||||
NSData *data1;
|
||||
NSMutableData *mutable;
|
||||
unsigned char *hold;
|
||||
|
||||
|
|
Loading…
Reference in a new issue