mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
test: make more of the ParseableInterface tests pass on Windows
Rewrite the shell to be more clever so it is amenable to porting to Windows. Use env not rather than not env to permit the lit environment handling to take over for Windows.
This commit is contained in:
@@ -21,9 +21,9 @@
|
||||
//
|
||||
// Phase 4: make sure we only compiled LeafModule and OtherModule one time:
|
||||
//
|
||||
// RUN: NUM_LEAF_MODULES=$(find %t/modulecache -type f -name 'LeafModule-*.swiftmodule' | wc -l)
|
||||
// RUN: NUM_OTHER_MODULES=$(find %t/modulecache -type f -name 'OtherModule-*.swiftmodule' | wc -l)
|
||||
// RUN: if [ ! $NUM_LEAF_MODULES -eq 1 ]; then echo "Should only be 1 LeafModule, found $NUM_LEAF_MODULES"; exit 1; fi
|
||||
// RUN: if [ ! $NUM_OTHER_MODULES -eq 1 ]; then echo "Should only be 1 OtherModule, found $NUM_OTHER_MODULES"; exit 1; fi
|
||||
// RUN: ls %t/modulecache | grep -c 'LeafModule-.*.swiftmodule' | %FileCheck %s
|
||||
// RUN: ls %t/modulecache | grep -c 'OtherModule-.*.swiftmodule' | %FileCheck %s
|
||||
// CHECK: 1
|
||||
|
||||
import LeafModule
|
||||
import OtherModule
|
||||
import OtherModule
|
||||
|
||||
Reference in New Issue
Block a user