+m4_define([UNIX_SOCKET_LONG_PATHNAME_PYN],
+ [AT_SETUP([test unix socket, long pathname - $1])
+ AT_SKIP_IF([test $2 = no || test "$IS_WIN32" = "yes"])
+ AT_KEYWORDS([python unixsocket])
+ dnl Linux sockaddr_un has a 108-byte limit, so this needs to be longer.
+ dnl Linux "ecryptfs" has a 143-byte limit, so we use that many bytes.
+ longname=01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012
+
+ dnl Skip the test if the directory can't be created (presumably the file
+ dnl system doesn't support such long names).
+ AT_CHECK([mkdir $longname || exit 77])
+ AT_CHECK([cd $longname && $3 $abs_srcdir/test-unix-socket.py ../$longname/socket socket])
+ AT_CLEANUP])
+
+UNIX_SOCKET_LONG_PATHNAME_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
+UNIX_SOCKET_LONG_PATHNAME_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])
+
+AT_SETUP([ovs_assert])
+if test "$IS_WIN32" = "yes"; then
+ exit_status=9
+else
+ # SIGABRT + 128
+ exit_status=134
+fi
+AT_CHECK([ovstest test-util -voff -vfile:info '-vPATTERN:file:%c|%p|%m' --log-file assert],
+ [$exit_status], [], [stderr])
+
+AT_CHECK([sed 's/\(opened log file\) .*/\1/
+s/|[[^|]]*: /|/' test-util.log], [0], [dnl
+vlog|INFO|opened log file
+util|EMER|assertion false failed in test_assert()