Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-1082] Foundation test failure: "No such module: XCTest" #4161

Closed
drewcrawford opened this issue Mar 28, 2016 · 2 comments
Closed

[SR-1082] Foundation test failure: "No such module: XCTest" #4161

drewcrawford opened this issue Mar 28, 2016 · 2 comments

Comments

@drewcrawford
Copy link
Contributor

Previous ID SR-1082
Radar None
Original Reporter @drewcrawford
Type Bug
Status Resolved
Resolution Cannot Reproduce
Environment

Linux x64
swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee None
Priority Medium

md5: d532c2d57dd147ba600652555a3992de

Issue Description:

When building (with libdispatch enabled?) foundation tests fail to build.

Error log:

[18/18] SwiftExecutable: ../build/buildbot_linux/foundation-linux-x86_64/TestFoundation/TestFoundation
FAILED: mkdir -p `dirname ../build/buildbot_linux/foundation-linux-x86_64/TestFoundation/TestFoundation`; /swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swiftc -I/swift-dev/build/buildbot_linux/swift-linux-x86_64/lib/swift/linux  -L/swift-dev/build/buildbot_linux/swift-linux-x86_64/lib/swift/linux    -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr/lib/swift -I../build/buildbot_linux/foundation-linux-x86_64/Foundation -L../build/buildbot_linux/foundation-linux-x86_64/Foundation -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr/lib/swift -I/usr/include/libxml2 -I/swift-dev/build/buildbot_linux/xctest-linux-x86_64LIBDISPATCH_BUILD_DIR=/swift-dev/build/buildbot_linux/libdispatch-linux-x86_64LIBDISPATCH_SOURCE_DIR=/swift-dev/swift-corelibs-libdispatch -L/swift-dev/build/buildbot_linux/xctest-linux-x86_64LIBDISPATCH_BUILD_DIR=/swift-dev/build/buildbot_linux/libdispatch-linux-x86_64LIBDISPATCH_SOURCE_DIR=/swift-dev/swift-corelibs-libdispatch -I/usr/include/libxml2 TestFoundation/main.swift TestFoundation/TestNSURL.swift TestFoundation/TestNSRange.swift TestFoundation/TestNSGeometry.swift TestFoundation/TestNSPipe.swift TestFoundation/TestNSRunLoop.swift TestFoundation/TestNSTimer.swift TestFoundation/TestNSByteCountFormatter.swift TestFoundation/TestNSJSONSerialization.swift TestFoundation/TestNSTask.swift TestFoundation/TestNSNumber.swift TestFoundation/TestNSDateFormatter.swift TestFoundation/TestNSIndexSet.swift TestFoundation/TestNSKeyedArchiver.swift TestFoundation/TestNSURLResponse.swift TestFoundation/TestNSHTTPCookie.swift TestFoundation/TestNSURLRequest.swift TestFoundation/TestNSRegularExpression.swift TestFoundation/TestNSNumberFormatter.swift TestFoundation/TestNSDate.swift TestFoundation/TestNSKeyedUnarchiver.swift TestFoundation/TestNSData.swift TestFoundation/TestNSXMLParser.swift TestFoundation/TestNSXMLDocument.swift TestFoundation/TestNSString.swift TestFoundation/TestNSScanner.swift TestFoundation/TestNSTimeZone.swift TestFoundation/TestNSArray.swift TestFoundation/TestNSBundle.swift TestFoundation/TestNSThread.swift TestFoundation/TestNSValue.swift TestFoundation/TestNSProcessInfo.swift TestFoundation/TestNSFileManager.swift TestFoundation/TestNSUserDefaults.swift TestFoundation/TestNSCharacterSet.swift TestFoundation/TestNSPropertyList.swift TestFoundation/TestNSSet.swift TestFoundation/TestNSUUID.swift TestFoundation/TestNSNotificationQueue.swift TestFoundation/TestNSOrderedSet.swift TestFoundation/TestNSNull.swift TestFoundation/TestNSIndexPath.swift TestFoundation/TestNSNotificationCenter.swift TestFoundation/TestNSAffineTransform.swift TestFoundation/TestNSLocale.swift TestFoundation/TestNSCalendar.swift TestFoundation/TestUtils.swift TestFoundation/TestNSDictionary.swift -o ../build/buildbot_linux/foundation-linux-x86_64/TestFoundation/TestFoundation
TestFoundation/TestNSURL.swift:13:8: error: no such module 'XCTest'
import XCTest
       ^
ninja: build stopped: subcommand failed.
./utils/build-script: command terminated with a non-zero exit status 1, aborting
./utils/build-script: using preset 'drew', which expands to ./utils/build-script --assertions --no-swift-stdlib-assertions --llbuild --swiftpm --xctest --build-subdir=buildbot_linux --lldb --release --test --validation-test --foundation --libdispatch -- --swift-enable-ast-verifier=0 --install-swift --install-lldb --install-llbuild --install-swiftpm --install-xctest --install-prefix=/usr '--swift-install-components=compiler;clang-builtin-headers;stdlib;sdk-overlay;license' --build-swift-static-stdlib --build-swift-stdlib-unittest-extra --skip-test-lldb --test-installable-package --install-destdir=/tmp/install/ --installable-package=/tmp/swift.tar.gz --install-foundation --reconfigure --install-libdispatch=1 --skip-test-libdispatch=1
./utils/build-script: command terminated with a non-zero exit status 1, aborting
The command '/bin/sh -c ./utils/build-script --preset=drew --preset-file=presets.ini --preset-file=utils/build-presets.ini installable_package="/tmp/swift.tar.gz" install_destdir="/tmp/install/"' returned a non-zero code: 1

This has been occurring for a month or so, I haven't bothered to report until now.

@compnerd
Copy link
Collaborator

Is this still an issue? You need to pass the path to the XCTest build for the test suite.

@spevans
Copy link
Collaborator

spevans commented Jan 15, 2020

This seems to be an old build issue that hasnt reoccured in a long time so resolving as unreproducible.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants