practicalswift
ca47cc6287
[SourceKit] Add test case for crash triggered in swift::TypeChecker::getTypeOfExpressionWithoutApplying(swift::Expr*&, swift::DeclContext*, swift::FreeTypeVariableBinding, swift::ExprTypeCheckListener*)
...
Stack trace:
```
found code completion token A at offset 109
swift-ide-test: /path/to/swift/lib/Sema/TypeCheckConstraints.cpp:1247: Optional<swift::Type> swift::TypeChecker::getTypeOfExpressionWithoutApplying(swift::Expr *&, swift::DeclContext *, swift::FreeTypeVariableBinding, swift::ExprTypeCheckListener *): Assertion `exprType && !exprType->is<ErrorType>() && "erroneous solution?"' failed.
8 swift-ide-test 0x000000000091ca15 swift::TypeChecker::getTypeOfExpressionWithoutApplying(swift::Expr*&, swift::DeclContext*, swift::FreeTypeVariableBinding, swift::ExprTypeCheckListener*) + 517
10 swift-ide-test 0x000000000090557e swift::getTypeOfCompletionContextExpr(swift::ASTContext&, swift::DeclContext*, swift::Expr*&) + 1150
12 swift-ide-test 0x0000000000863bd6 swift::performDelayedParsing(swift::DeclContext*, swift::PersistentParserState&, swift::CodeCompletionCallbacksFactory*) + 230
13 swift-ide-test 0x0000000000773cd4 swift::CompilerInstance::performSema() + 3316
14 swift-ide-test 0x000000000071c633 main + 35027
Stack dump:
0. Program arguments: swift-ide-test -code-completion -code-completion-token=A -source-filename=<INPUT-FILE>
1. While type-checking expression at [<INPUT-FILE>:2:3 - line:2:3] RangeText="0"
```
2015-12-14 16:40:55 +01:00
practicalswift
5112308aa6
[SourceKit] Add test case for crash triggered in swift::TypeBase::getCanonicalType()
...
Stack trace:
```
found code completion token A at offset 137
4 swift-ide-test 0x0000000000b8adc4 swift::TypeBase::getCanonicalType() + 20
6 swift-ide-test 0x0000000000936237 swift::TypeChecker::typeCheckDecl(swift::Decl*, bool) + 151
7 swift-ide-test 0x0000000000904e72 swift::typeCheckCompletionDecl(swift::Decl*) + 1122
18 swift-ide-test 0x0000000000ae4594 swift::Decl::walk(swift::ASTWalker&) + 20
19 swift-ide-test 0x0000000000b6db1e swift::SourceFile::walk(swift::ASTWalker&) + 174
20 swift-ide-test 0x0000000000b6ceff swift::ModuleDecl::walk(swift::ASTWalker&) + 79
21 swift-ide-test 0x0000000000b47602 swift::DeclContext::walkContext(swift::ASTWalker&) + 146
22 swift-ide-test 0x0000000000863d8d swift::performDelayedParsing(swift::DeclContext*, swift::PersistentParserState&, swift::CodeCompletionCallbacksFactory*) + 61
23 swift-ide-test 0x0000000000773d54 swift::CompilerInstance::performSema() + 3316
24 swift-ide-test 0x000000000071c7c3 main + 35027
Stack dump:
0. Program arguments: swift-ide-test -code-completion -code-completion-token=A -source-filename=<INPUT-FILE>
1. While walking into decl declaration 0x<INPUT-FILE>:2:1
2. While type-checking 'C' at <INPUT-FILE>:2:20
```
2015-12-13 12:54:16 +01:00
practicalswift
02c025042c
Add SourceKit crash in swift::DiagnosticEngine::emitDiagnostic(swift::Diagnostic const&)
...
found code completion token A at offset 139
swift-ide-test: /path/to/llvm/include/llvm/Support/Casting.h:95: static bool llvm::isa_impl_cl<swift::ParenType, const swift::TypeBase *>::doit(const From *) [To = swift::ParenType, From = const swift::TypeBase *]: Assertion `Val && "isa<> used on a null pointer"' failed.
10 swift-ide-test 0x0000000000b4aecf swift::DiagnosticEngine::emitDiagnostic(swift::Diagnostic const&) + 3039
11 swift-ide-test 0x0000000000b4a19f swift::DiagnosticEngine::flushActiveDiagnostic() + 319
15 swift-ide-test 0x0000000000936237 swift::TypeChecker::typeCheckDecl(swift::Decl*, bool) + 151
16 swift-ide-test 0x0000000000904e72 swift::typeCheckCompletionDecl(swift::Decl*) + 1122
21 swift-ide-test 0x0000000000ae4594 swift::Decl::walk(swift::ASTWalker&) + 20
22 swift-ide-test 0x0000000000b6db1e swift::SourceFile::walk(swift::ASTWalker&) + 174
23 swift-ide-test 0x0000000000b6ceff swift::ModuleDecl::walk(swift::ASTWalker&) + 79
24 swift-ide-test 0x0000000000b47602 swift::DeclContext::walkContext(swift::ASTWalker&) + 146
25 swift-ide-test 0x0000000000863d8d swift::performDelayedParsing(swift::DeclContext*, swift::PersistentParserState&, swift::CodeCompletionCallbacksFactory*) + 61
26 swift-ide-test 0x0000000000773d54 swift::CompilerInstance::performSema() + 3316
27 swift-ide-test 0x000000000071c7c3 main + 35027
Stack dump:
0. Program arguments: swift-ide-test -code-completion -code-completion-token=A -source-filename=<INPUT-FILE>
1. While walking into decl getter for a at <INPUT-FILE>:2:6
2. While type-checking 'a' at <INPUT-FILE>:2:27
2015-12-13 09:54:38 +01:00
practicalswift
4585bce530
Add SourceKit crash.
...
Thanks to @ddunbar who suggested swift-ide-test as a fuzzing target:
https://twitter.com/daniel_dunbar/status/675712444228997120
2015-12-12 22:53:35 +01:00
Ben Langmuir
50cc79c7f2
Fix crash code-completing after 1 + [0]
...
A literal in a sub-expression of the right-most expression in a sequence
could accidentally still have an error-type when going through CSApply.
rdar://problem/23488528
2015-11-16 11:35:13 -08:00
Ben Langmuir
7649d3202d
[CodeCompletion] Add test for a fixed crasher assigning to AnyObject
...
rdar://problem/23379556
2015-11-12 13:09:44 -08:00
Ben Langmuir
d119d6e3b0
[CodeCompletion] Update validation-test/IDE after keyword changes
2015-11-02 14:35:09 -08:00
Ben Langmuir
465c2db70e
[CodeCompletion] Add a test for some previously crashing extensions
...
This got incidentally fixed recently, but wasn't yet tested.
rdar://problem/21825270
Swift SVN r32792
2015-10-21 17:58:25 +00:00
Ben Langmuir
c7da7457e6
Update validation/IDE tests missed in previous commit
...
Swift SVN r26263
2015-03-18 17:26:11 +00:00
Denis Vnukov
152df92966
[CodeCompletion] Code Completion String getName should always return non-empty string value for
...
valid code completions. Code completion tests call and validate getName’s result.
A minor fix for code completion fro subscripts.
Swift SVN r25101
2015-02-09 22:32:05 +00:00
Dmitri Hrybenko
400bd74ae7
validation-test: use %target substitutions more
...
Swift SVN r25024
2015-02-06 01:10:56 +00:00
Graham Batty
83b4384fac
Update test flags for linux failures and support.
...
Also removed the sdk 'feature' in favour of the more specific
objc_interop.
Swift SVN r24856
2015-01-30 21:31:48 +00:00
Dmitri Hrybenko
1eea220932
Use one module cache directory for all the lit tests to speed them up
...
Doing so is safe even though we have mock SDK. The include paths for
modules with the same name in the real and mock SDKs are different, and
the module files will be distinct (because they will have a different
hash).
This reduces test runtime on OS X by 30% and brings it under a minute on
a 16-core machine.
This also uncovered some problems with some tests -- even when run for
iOS configurations, some tests would still run with macosx triple. I
fixed the tests where I noticed this issue.
rdar://problem/19125022
Swift SVN r23683
2014-12-04 11:21:48 +00:00
Dmitri Hrybenko
1347b446c9
Stop using the MODULES_SDK variable in -D flags for the C++ compiler
...
Swift SVN r23097
2014-11-04 05:44:12 +00:00
Dmitri Hrybenko
fc8af07472
Remove long_tests requirements in the validation testsuite
...
Swift SVN r21278
2014-08-19 11:05:27 +00:00
Dmitri Hrybenko
a74a29ece3
Move long-running code completion tests to the validation testsuite
...
Swift SVN r21277
2014-08-19 11:04:35 +00:00