X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flibrary.at;h=70660a2569f943a47b4d3d1b7b8122c0cc93cb84;hb=e2170cffc1e736db85b461b9bff2afa74ba180f2;hp=c70324185c5cdcb49c4debecc8215a3fe41de423;hpb=1b233b95b5907a242ee453cbea3ad4bc4cd4fec2;p=openvswitch diff --git a/tests/library.at b/tests/library.at index c7032418..70660a25 100644 --- a/tests/library.at +++ b/tests/library.at @@ -7,33 +7,134 @@ AT_CHECK([test-flows . We do not have a workaround +dnl for other platforms, so we skip the test there. +AT_SETUP([test unix socket -- long pathname]) +AT_CHECK([dnl + case `uname` in dnl ( + *[[lL]]inux*) + exit 0 + ;; dnl ( + *) + dnl Magic exit code to tell Autotest to skip this test. + exit 77 + ;; + esac +]) +dnl Linux has a 108 byte limit; this is 150 bytes long. +mkdir 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 +cd 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 +AT_CHECK([test-unix-socket ../012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/socket socket]) AT_CLEANUP