Small fixes for Linux.

This commit is contained in:
Krunoslav Zaher 2015-12-27 17:07:13 -08:00
parent f948e46800
commit 95dea91c73
2 changed files with 7 additions and 4 deletions

View File

@ -40,7 +40,7 @@
public func CFRunLoopRun() {
runLoopCounter += 1
let currentValueOfCounter = runLoopCounter
while let front = queue.tryDequeue() {
while let front = queue.dequeue() {
front()
if runLoopCounter < currentValueOfCounter - 1 {
fatalError("called stop twice")
@ -199,9 +199,9 @@
public func expectationWithDescription(description: String) -> Expectation {
return Expectation()
}
public func waitForExpectationsWithTimeout(time: NSTimeInterval, action: ErrorType? -> Void) {
}
}
#endif

View File

@ -9,6 +9,9 @@
import Foundation
import RxSwift
import XCTest
#if os(Linux)
import Glibc
#endif
class VirtualSchedulerTest : RxTest {
@ -230,4 +233,4 @@ extension VirtualSchedulerTest {
times = times.sort()
XCTAssertEqual(times, ticks)
}
}
}