X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flibrary.at;h=0765c3f3f55d99c31ba21de1193bbe8334f394b2;hb=3305a0d09cfc6df443f02a1b5e2d39656cb79189;hp=1dca2b850b6027b18a97110ea0d7a24788d3c9b7;hpb=10a24935c9d382e4d85b05d9616843f3d3bb4983;p=openvswitch diff --git a/tests/library.at b/tests/library.at index 1dca2b85..0765c3f3 100644 --- a/tests/library.at +++ b/tests/library.at @@ -7,34 +7,136 @@ 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