mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We had some situations left that neither returned an error, nor called the callback with results in `performOperation`. Return an error in these and adjust the tests to correctly match the error.
20 lines
716 B
Swift
20 lines
716 B
Swift
class Str {
|
|
var value: Str
|
|
}
|
|
|
|
// rdar://problem/58663066
|
|
// Test a environment where stdlib is not found.
|
|
// Completion should return zero result.
|
|
|
|
// RUN: %empty-directory(%t/rsrc)
|
|
// RUN: %empty-directory(%t/sdk)
|
|
|
|
// RUN: not %sourcekitd-test \
|
|
// RUN: -req=global-config -req-opts=completion_max_astcontext_reuse_count=0 \
|
|
// RUN: -req=complete -pos=4:1 %s -- %s -resource-dir %t/rsrc -sdk %t/sdk 2>&1 | %FileCheck %s
|
|
// RUN: not %sourcekitd-test \
|
|
// RUN: -req=complete -pos=4:1 %s -- %s -resource-dir %t/rsrc -sdk %t/sdk == \
|
|
// RUN: -req=complete -pos=4:1 %s -- %s -resource-dir %t/rsrc -sdk %t/sdk 2>&1 | %FileCheck %s
|
|
|
|
// CHECK: error response (Request Failed): failed to load the standard library
|