X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Flibrary.at;h=ec50e23ab9fd7bbce6b69c623e860185c1d98c69;hb=b3e9b2eda9ae5be2ac2b7917858732738a818b66;hp=f9f97f14d24d57f12b7d90bcdddc825e1ab0f404;hpb=3223e977cae4125b24ebb9498e0b67b4d8fac4c3;p=openvswitch diff --git a/tests/library.at b/tests/library.at index f9f97f14..ec50e23a 100644 --- a/tests/library.at +++ b/tests/library.at @@ -7,29 +7,122 @@ 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