blob: 203d07afabb10264ed0c351c2f8777150f938eaa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
import Ice
import PromiseKit
import TestCommon
class PreservedI: Preserved {
public required init() {
PreservedI.counter += 1
super.init()
}
deinit {
PreservedI.counter -= 1
}
static var counter: Int32 = 0
}
class PNodeI: PNode {
public required init() {
PNodeI.counter += 1
super.init()
}
deinit {
PNodeI.counter -= 1
}
static var counter: Int32 = 0
}
public class Client: TestHelperI {
public override func run(args: [String]) throws {
let properties = try createTestProperties(args)
properties.setProperty(key: "Ice.AcceptClassCycles", value: "1")
var initData = InitializationData()
initData.properties = properties
initData.classResolverPrefix = ["IceSlicingObjects", "IceSlicingObjectsClient"]
let communicator = try initialize(initData)
defer {
communicator.destroy()
}
let testPrx = try allTests(self)
try testPrx.shutdown()
}
}
|