This is an archive of the discontinued LLVM Phabricator instance.

Simplify MinGW test.
ClosedPublic

Authored by ruiu on Sep 11 2017, 1:52 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

ruiu created this revision.Sep 11 2017, 1:52 PM
mstorsjo added inline comments.Sep 11 2017, 2:03 PM
lld/test/MinGW/driver.s
2 ↗(On Diff #114677)

Is there any value in actually assembling an input object for this test, when we actually don't do any real linking here?

33 ↗(On Diff #114677)

This test seems to have been mixed up, and I can't find the actual test for the stack option.

ruiu updated this revision to Diff 114685.Sep 11 2017, 2:04 PM
  • cover all options
mstorsjo added inline comments.Sep 11 2017, 2:04 PM
lld/test/MinGW/driver.s
8 ↗(On Diff #114677)

I think this could use a check for the image base alternate name, which has got a i386 specific case.

ruiu added a comment.Sep 11 2017, 2:07 PM

We need to pass a path to an existing file, so I passed an object file to each test, but it doesn't have to be an actual object file. In the updated test case, /dev/null is passed instead.

lld/test/MinGW/driver.s
33 ↗(On Diff #114677)

Fixed.

ruiu updated this revision to Diff 114688.Sep 11 2017, 2:07 PM
  • Address review comments.
ruiu updated this revision to Diff 114709.Sep 11 2017, 2:49 PM
  • test -mllvm option.
This revision is now accepted and ready to land.Sep 11 2017, 10:23 PM
This revision was automatically updated to reflect the committed changes.
lld/trunk/test/MinGW/driver.test