From fabbeb21fb5a0321d3f707f9d5d134485a494d52 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 16 Jan 2013 09:23:08 -0800 Subject: [PATCH] tests: Make long name more readable by introducing a shell variable. Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson --- tests/library.at | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/library.at b/tests/library.at index d8280fd15..3e84648a1 100644 --- a/tests/library.at +++ b/tests/library.at @@ -126,9 +126,10 @@ dnl for other platforms, so we skip the test there. AT_SETUP([test unix socket -- long pathname]) AT_SKIP_IF([test ! -d /proc/self/fd]) dnl Linux has a 108 byte limit; this is 150 bytes long. -mkdir 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -cd 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -AT_CHECK([test-unix-socket ../012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/socket socket]) +longname=012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 +mkdir $longname +cd $longname +AT_CHECK([test-unix-socket ../$longname/socket socket]) AT_CLEANUP AT_SETUP([ovs_assert]) -- 2.47.0