mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
test: output FILENAME_MAX vs. PATH_MAX sizes
Also, make sure our assumption that FILENAME_MAX == PATH_MAX holds.
This commit is contained in:
parent
445714569d
commit
698660620d
@ -838,6 +838,15 @@ static void test_path_startswith_strv(void) {
|
||||
int main(int argc, char **argv) {
|
||||
test_setup_logging(LOG_DEBUG);
|
||||
|
||||
log_info("PATH_MAX=%zu\n"
|
||||
"FILENAME_MAX=%zu\n"
|
||||
"NAME_MAX=%zu",
|
||||
(size_t) PATH_MAX,
|
||||
(size_t) FILENAME_MAX,
|
||||
(size_t) NAME_MAX);
|
||||
|
||||
assert_cc(FILENAME_MAX == PATH_MAX);
|
||||
|
||||
test_print_paths();
|
||||
test_path();
|
||||
test_path_equal_root();
|
||||
|
Loading…
x
Reference in New Issue
Block a user