TEST(utmp, login_tty) { // login_tty is tested indirectly by the openpty and forkpty tests. // This test just checks that we're exporting the symbol independently.
ASSERT_EQ(-1, login_tty(-1));
}
TEST(utmp, smoke) { // The rest of <utmp.h> is just no-op implementations, so testing is trivial.
ASSERT_EQ(-1, utmpname("hello"));
setutent();
ASSERT_EQ(NULL, getutent());
endutent();
utmp failure = {.ut_type = EMPTY};
ASSERT_EQ(NULL, pututline(&failure));
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.