8154976: UseSharedSpaces error message is incomplete

Reviewed-by: cjplummer, jiangli, mseledtsov
This commit is contained in:
Calvin Cheung 2016-04-27 11:40:43 -07:00
parent 97a96449f9
commit 023aa74fc2
2 changed files with 3 additions and 1 deletions

View File

@ -99,7 +99,8 @@ void FileMapInfo::fail_continue(const char *msg, ...) {
fail(msg, ap);
} else {
if (PrintSharedSpaces) {
tty->print_cr("UseSharedSpaces: %s", msg);
tty->print("UseSharedSpaces: ");
tty->vprint_cr(msg, ap);
}
}
UseSharedSpaces = false;

View File

@ -67,6 +67,7 @@ public class XShareAuto {
// if sharing failed due to ASLR or similar reasons,
// check whether sharing was attempted at all (UseSharedSpaces)
output.shouldContain("UseSharedSpaces:");
output.shouldNotContain("Unable to map %s");
}
output.shouldHaveExitValue(0);
}