Better error message for rpath test.

This commit is contained in:
Jussi Pakkanen 2018-12-29 00:52:07 +02:00
parent da5da5977a
commit 8a6c0aa13d
1 changed files with 1 additions and 1 deletions

View File

@ -2082,7 +2082,7 @@ int main(int argc, char **argv) {
self.build()
for each in ('prog', 'subdir/liblib1.so', ):
rpath = get_rpath(os.path.join(self.builddir, each))
self.assertTrue(rpath)
self.assertTrue(rpath, 'Rpath could not be determined for {}.'.format(each))
if is_dragonflybsd():
# DragonflyBSD will prepend /usr/lib/gccVERSION to the rpath,
# so ignore that.