Provoke address sanitizer hit on session finalization
authorDirk Zimmermann <dirk@pep-project.org>
Mon, 01 Aug 2016 12:49:04 +0200
changeset 1394cfa4a534667
parent 138 6adb106948b6
child 140 e825554c8160
child 141 686dd3e262ad
Provoke address sanitizer hit on session finalization
iOSTests/PepTests.m
pEpiOSAdapter.xcodeproj/project.pbxproj
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/iOSTests/PepTests.m	Mon Aug 01 12:49:04 2016 +0200
     1.3 @@ -0,0 +1,34 @@
     1.4 +//
     1.5 +//  PepTests.m
     1.6 +//  pEpiOSAdapter
     1.7 +//
     1.8 +//  Created by Dirk Zimmermann on 01/08/16.
     1.9 +//  Copyright © 2016 p≡p. All rights reserved.
    1.10 +//
    1.11 +
    1.12 +#import <XCTest/XCTest.h>
    1.13 +
    1.14 +#import "pEpiOSAdapter/PEPiOSAdapter.h"
    1.15 +#import "pEpiOSAdapter/PEPSession.h"
    1.16 +
    1.17 +@interface PepTests : XCTestCase
    1.18 +
    1.19 +@end
    1.20 +
    1.21 +@implementation PepTests
    1.22 +
    1.23 +- (void)setUp {
    1.24 +    [super setUp];
    1.25 +    [PEPiOSAdapter setupTrustWordsDB:[NSBundle bundleForClass:[self class]]];
    1.26 +}
    1.27 +
    1.28 +- (void)tearDown {
    1.29 +    [super tearDown];
    1.30 +}
    1.31 +
    1.32 +- (void)testSessionFinalization {
    1.33 +    PEPSession *session = [[PEPSession alloc] init];
    1.34 +    session = nil;
    1.35 +}
    1.36 +
    1.37 +@end
     2.1 --- a/pEpiOSAdapter.xcodeproj/project.pbxproj	Fri Jul 29 14:42:08 2016 +0200
     2.2 +++ b/pEpiOSAdapter.xcodeproj/project.pbxproj	Mon Aug 01 12:49:04 2016 +0200
     2.3 @@ -19,6 +19,7 @@
     2.4  		432FA2D41C884C5F00DDF874 /* partner2_F9D9CCD0A401311F_pub.asc in Resources */ = {isa = PBXBuildFile; fileRef = 432FA2D11C884C5F00DDF874 /* partner2_F9D9CCD0A401311F_pub.asc */; };
     2.5  		432FA2D71C884FF500DDF874 /* meATdontcare_E3BFBCA9248FC681_pub.asc in Resources */ = {isa = PBXBuildFile; fileRef = 432FA2D51C884FF500DDF874 /* meATdontcare_E3BFBCA9248FC681_pub.asc */; };
     2.6  		432FA2D81C884FF500DDF874 /* meATdontcare_E3BFBCA9248FC681_sec.asc in Resources */ = {isa = PBXBuildFile; fileRef = 432FA2D61C884FF500DDF874 /* meATdontcare_E3BFBCA9248FC681_sec.asc */; };
     2.7 +		434226811D4F60000083ED79 /* PepTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 434226801D4F60000083ED79 /* PepTests.m */; };
     2.8  		435A64971C633D4000E857B0 /* msg_to_80D111EF_from_outlook_2.ser in Resources */ = {isa = PBXBuildFile; fileRef = 435A64961C633D4000E857B0 /* msg_to_80D111EF_from_outlook_2.ser */; };
     2.9  		43676B661C57EA1A00233933 /* B623F674_sec.asc in Resources */ = {isa = PBXBuildFile; fileRef = 43676B641C57EA1A00233933 /* B623F674_sec.asc */; };
    2.10  		4369AA3B1C6258B800D66556 /* 80D111EF_sec.asc in Resources */ = {isa = PBXBuildFile; fileRef = 4369AA371C6258B800D66556 /* 80D111EF_sec.asc */; };
    2.11 @@ -138,6 +139,7 @@
    2.12  		432FA2D11C884C5F00DDF874 /* partner2_F9D9CCD0A401311F_pub.asc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = partner2_F9D9CCD0A401311F_pub.asc; sourceTree = "<group>"; };
    2.13  		432FA2D51C884FF500DDF874 /* meATdontcare_E3BFBCA9248FC681_pub.asc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = meATdontcare_E3BFBCA9248FC681_pub.asc; sourceTree = "<group>"; };
    2.14  		432FA2D61C884FF500DDF874 /* meATdontcare_E3BFBCA9248FC681_sec.asc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = meATdontcare_E3BFBCA9248FC681_sec.asc; sourceTree = "<group>"; };
    2.15 +		434226801D4F60000083ED79 /* PepTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PepTests.m; sourceTree = "<group>"; };
    2.16  		435A64961C633D4000E857B0 /* msg_to_80D111EF_from_outlook_2.ser */ = {isa = PBXFileReference; lastKnownFileType = file.bplist; path = msg_to_80D111EF_from_outlook_2.ser; sourceTree = "<group>"; };
    2.17  		43676B631C57EA1A00233933 /* 0xB623F674.asc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = 0xB623F674.asc; sourceTree = "<group>"; };
    2.18  		43676B641C57EA1A00233933 /* B623F674_sec.asc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = B623F674_sec.asc; sourceTree = "<group>"; };
    2.19 @@ -282,6 +284,7 @@
    2.20  				43676B631C57EA1A00233933 /* 0xB623F674.asc */,
    2.21  				43676B641C57EA1A00233933 /* B623F674_sec.asc */,
    2.22  				64415E191BE94FCB00F6CBB2 /* iOSTests.m */,
    2.23 +				434226801D4F60000083ED79 /* PepTests.m */,
    2.24  				64415E1B1BE94FCB00F6CBB2 /* Info.plist */,
    2.25  			);
    2.26  			path = iOSTests;
    2.27 @@ -448,6 +451,7 @@
    2.28  			buildActionMask = 2147483647;
    2.29  			files = (
    2.30  				64415E1A1BE94FCB00F6CBB2 /* iOSTests.m in Sources */,
    2.31 +				434226811D4F60000083ED79 /* PepTests.m in Sources */,
    2.32  			);
    2.33  			runOnlyForDeploymentPostprocessing = 0;
    2.34  		};