Page MenuHomePhabricator

[BUNDLER]Improve the test, NFC.
ClosedPublic

Authored by ABataev on Aug 15 2019, 8:15 AM.

Details

Summary

Make the test more portable and do not rely on the pre-bundled object
file.

Diff Detail

Repository
rL LLVM

Event Timeline

ABataev created this revision.Aug 15 2019, 8:15 AM
Herald added a project: Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Aug 15 2019, 8:27 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 15 2019, 9:30 AM
azharudd added a subscriber: azharudd.EditedAug 15 2019, 11:57 AM

Looks like this is failing on Darwin:

http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-incremental/1193/consoleFull#-2382751928254eaf0-7326-4999-85b0-388101f2d404

/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/llvm-project/clang/test/Driver/clang-offload-bundler.c:120:15: error: CK-TEXTLL: expected string not found in input
// CK-TEXTLL: @A = dso_local global i32 0
              ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/tools/clang/test/Driver/Output/clang-offload-bundler.c.tmp.bundle3.ll:3:1: note: scanning from here
; ModuleID = '/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/llvm-project/clang/test/Driver/clang-offload-bundler.c'
^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/tools/clang/test/Driver/Output/clang-offload-bundler.c.tmp.bundle3.ll:8:1: note: possible intended match here
@A = global i32 0, align 4

Looks like this is failing on Darwin:

http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-incremental/1193/consoleFull#-2382751928254eaf0-7326-4999-85b0-388101f2d404

/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/llvm-project/clang/test/Driver/clang-offload-bundler.c:120:15: error: CK-TEXTLL: expected string not found in input
// CK-TEXTLL: @A = dso_local global i32 0
              ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/tools/clang/test/Driver/Output/clang-offload-bundler.c.tmp.bundle3.ll:3:1: note: scanning from here
; ModuleID = '/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/llvm-project/clang/test/Driver/clang-offload-bundler.c'
^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/tools/clang/test/Driver/Output/clang-offload-bundler.c.tmp.bundle3.ll:8:1: note: possible intended match here
@A = global i32 0, align 4

Committed the fix already