File tree 3 files changed +12
-7
lines changed
3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -113,13 +113,12 @@ endif
113
113
114
114
bench_log_SOURCES = bench-log.c
115
115
bench_log_LDADD = $(top_builddir ) /lib/libqb.la
116
+ libdir = $(TESTDIR )
116
117
117
- lib_LTLIBRARIES = libstat_wrapper.la
118
+ if HAVE_CHECK
118
119
libstat_wrapper_la_SOURCES = libstat_wrapper.c
119
120
libstat_wrapper_la_LIBADD = -ldl
120
- libdir = $(TESTDIR )
121
121
122
- if HAVE_CHECK
123
122
EXTRA_DIST += start.test resources.test ipc_sock.test
124
123
EXTRA_DIST += blackbox-segfault.sh
125
124
@@ -128,11 +127,12 @@ TESTS_ENVIRONMENT = export PATH=.:../tools:$$PATH;
128
127
129
128
resources.log : rb.log log.log ipc.log
130
129
131
- check_LTLIBRARIES =
132
130
check_PROGRAMS = array.test ipc.test list.test log.test loop.test \
133
131
map.test rb.test util.test tlist.test \
134
132
crash_test_dummy file_change_bytes
135
133
dist_check_SCRIPTS = start.test resources.test blackbox-segfault.sh ipc_sock.test
134
+ # lib_LTLIBRARIES = libstat_wrapper.la
135
+ check_LTLIBRARIES =
136
136
137
137
if HAVE_SLOW_TESTS
138
138
TESTS += util.test
@@ -143,6 +143,9 @@ if INSTALL_TESTS
143
143
testsuitedir = $(TESTDIR )
144
144
testsuite_PROGRAMS = $(check_PROGRAMS )
145
145
testsuite_SCRIPTS = $(dist_check_SCRIPTS ) test.conf
146
+ lib_LTLIBRARIES = libstat_wrapper.la
147
+ else
148
+ noinst_LTLIBRARIES = libstat_wrapper.la
146
149
endif
147
150
148
151
file_change_bytes_SOURCES = file_change_bytes.c
Original file line number Diff line number Diff line change 3
3
# Run the IPC tests under the stat wrapper,
4
4
# this simulates /etc/libqb/use-filesystem-sockets existing
5
5
# so we can test both options without breaking other things
6
- # that might be running on this system
6
+ # that might be running on this system.
7
7
#
8
- if [ " $( uname -s) " = " Linux" ]
8
+ # This creates sockets in /var/run so needs to be root
9
+ #
10
+ if [ " $( uname -s) " = " Linux" -a " $UID " = " 0" ]
9
11
then
10
12
if [ -f " $( pwd) /.libs/libstat_wrapper.so" ]
11
13
then
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ EXPECTED_DLOCK=6
5
5
EXPECTED_LEFTOVER=2
6
6
7
7
# Linux also runs filesystem socket tests
8
- if [ " $( uname -s) " = " Linux" ]
8
+ if [ " $( uname -s) " = " Linux" -a " $UID " = " 0 " ]
9
9
then
10
10
EXPECTED_DLOCK=12
11
11
EXPECTED_LEFTOVER=4
You can’t perform that action at this time.
0 commit comments