My bad (and Kevin's bad). The test requires Objective-C, but we forgot to include that as a requirement. If you pull more recent changes the test should be disabled on non-Apple platforms.
Jordan > On Dec 23, 2015, at 16:11, Jeremy Fergason via swift-dev > <swift-dev@swift.org> wrote: > > I have successfully built from the git repo on RHEL 7 but one of the tests > fail: IDE/print_clang/header_swift_name.swift > > Is this expected? > > Here’s the relevant output: > > FAIL: Swift :: IDE/print_clang_header_swift_name.swift (633 of 2366) > ******************** TEST 'Swift :: IDE/print_clang_header_swift_name.swift' > FAILED ******************** > Script: > -- > echo '#include "print_clang_header_swift_name.h"' > > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift-ide-test > -target x86_64-unknown-linux-gnu -module-cache-path > '/tmp/swift-testsuite-clang-module-cacheD5HlOp' -completion-cache-path > '/tmp/swift-testsuite-completion-cacheHz8Ppv' -source-filename > /home/makerpm/swift/test/IDE/print_clang_header_swift_name.swift > -print-header -header-to-print > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h --cc-args > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmparget-cc-options > -isysroot '/home/makerpm/swift/test'/Inputs/clang-importer-sdk > -fsyntax-only > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m > -I /home/makerpm/swift/test/IDE/Inputs | FileCheck > /home/makerpm/swift/test/IDE/print_clang_header_swift_name.swift > -- > Exit Code: 1 > > Command Output (stderr): > -- > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1:10: > note: in file included from > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1: > #include "print_clang_header_swift_name.h" > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:1:1: > error: expected identifier or '(' > @import Foundation; > ^ > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1:10: > note: in file included from > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1: > #include "print_clang_header_swift_name.h" > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:7:9: > error: expected identifier or '(' > typedef SWIFT_ENUM(NSInteger, Normal) { > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:5:45: > note: expanded from macro 'SWIFT_ENUM' > #define SWIFT_ENUM(_type, _name) enum _name : _type _name; enum > SWIFT_ENUM_EXTRA _name : _type > ^ > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1:10: > note: in file included from > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1: > #include "print_clang_header_swift_name.h" > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:7:9: > error: expected ';' after top level declarator > typedef SWIFT_ENUM(NSInteger, Normal) { > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:5:88: > note: expanded from macro 'SWIFT_ENUM' > #define SWIFT_ENUM(_type, _name) enum _name : _type _name; enum > SWIFT_ENUM_EXTRA _name : _type > > ^ > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1:10: > note: in file included from > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1: > #include "print_clang_header_swift_name.h" > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:7:20: > warning: type specifier missing, defaults to 'int' > typedef SWIFT_ENUM(NSInteger, Normal) { > ^ > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1:10: > note: in file included from > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1: > #include "print_clang_header_swift_name.h" > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:7:38: > error: expected ';' after top level declarator > typedef SWIFT_ENUM(NSInteger, Normal) { > ^ > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1:10: > note: in file included from > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1: > #include "print_clang_header_swift_name.h" > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:18:9: > error: expected identifier or '(' > typedef SWIFT_ENUM(NSInteger, ObjCEnum) { > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:15:45: > note: expanded from macro 'SWIFT_ENUM' > #define SWIFT_ENUM(_type, _name) enum _name : _type _name > SWIFT_COMPILE_NAME(SWIFT_ENUM_NAME); enum SWIFT_COMPILE_NAME(SWIFT_ENUM_NAME) > SWIFT_ENUM_EXTRA _name : _type > ^ > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1:10: > note: in file included from > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1: > #include "print_clang_header_swift_name.h" > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:18:9: > error: expected ';' after top level declarator > typedef SWIFT_ENUM(NSInteger, ObjCEnum) { > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:15:160: > note: expanded from macro 'SWIFT_ENUM' > #define SWIFT_ENUM(_type, _name) enum _name : _type _name > SWIFT_COMPILE_NAME(SWIFT_ENUM_NAME); enum SWIFT_COMPILE_NAME(SWIFT_ENUM_NAME) > SWIFT_ENUM_EXTRA _name : _type > > > ^ > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1:10: > note: in file included from > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1: > #include "print_clang_header_swift_name.h" > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:18:20: > warning: type specifier missing, defaults to 'int' > typedef SWIFT_ENUM(NSInteger, ObjCEnum) { > ^ > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1:10: > note: in file included from > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1: > #include "print_clang_header_swift_name.h" > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:18:40: > error: expected ';' after top level declarator > typedef SWIFT_ENUM(NSInteger, ObjCEnum) { > ^ > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1:10: > note: in file included from > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1: > #include "print_clang_header_swift_name.h" > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:26:9: > error: expected identifier or '(' > typedef SWIFT_ENUM(NSInteger, ObjCEnumTwo) { > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:15:45: > note: expanded from macro 'SWIFT_ENUM' > #define SWIFT_ENUM(_type, _name) enum _name : _type _name > SWIFT_COMPILE_NAME(SWIFT_ENUM_NAME); enum SWIFT_COMPILE_NAME(SWIFT_ENUM_NAME) > SWIFT_ENUM_EXTRA _name : _type > ^ > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1:10: > note: in file included from > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1: > #include "print_clang_header_swift_name.h" > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:26:9: > error: expected ';' after top level declarator > typedef SWIFT_ENUM(NSInteger, ObjCEnumTwo) { > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:15:160: > note: expanded from macro 'SWIFT_ENUM' > #define SWIFT_ENUM(_type, _name) enum _name : _type _name > SWIFT_COMPILE_NAME(SWIFT_ENUM_NAME); enum SWIFT_COMPILE_NAME(SWIFT_ENUM_NAME) > SWIFT_ENUM_EXTRA _name : _type > > > ^ > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1:10: > note: in file included from > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1: > #include "print_clang_header_swift_name.h" > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:26:20: > warning: type specifier missing, defaults to 'int' > typedef SWIFT_ENUM(NSInteger, ObjCEnumTwo) { > ^ > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1:10: > note: in file included from > /home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m:1: > #include "print_clang_header_swift_name.h" > ^ > /home/makerpm/swift/test/IDE/Inputs/print_clang_header_swift_name.h:26:43: > error: expected ';' after top level declarator > typedef SWIFT_ENUM(NSInteger, ObjCEnumTwo) { > ^ > <unknown>:0: error: failed to import bridging header > '/home/makerpm/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/IDE/Output/print_clang_header_swift_name.swift.tmp.m' > /home/makerpm/swift/test/IDE/print_clang_header_swift_name.swift:6:11: error: > expected string not found in input > // CHECK: enum Normal : Int { > ^ > <stdin>:1:1: note: scanning from here > var NSInteger: Int32 > ^ > <stdin>:1:7: note: possible intended match here > var NSInteger: Int32 > ^ > > -- > > ******************** > Testing Time: 63.28s > ******************** > Failing Tests (1): > Swift :: IDE/print_clang_header_swift_name.swift > > Expected Passes : 1698 > Expected Failures : 88 > Unsupported Tests : 579 > Unexpected Failures: 1 > *** Failed while running tests for swift (check-swift-linux-x86_64) > > Thanks for any feedback in advance! > > Sincerely, > > Jeremy Fergason > _______________________________________________ > swift-dev mailing list > swift-dev@swift.org <mailto:swift-dev@swift.org> > https://lists.swift.org/mailman/listinfo/swift-dev > <https://lists.swift.org/mailman/listinfo/swift-dev>
_______________________________________________ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev