Skip to content

Commit 7be22f1

Browse files
committed
Fix tests for OpenBSD
Using the diff provided by @krobelus on #5173 Close #5173
1 parent 8c2775f commit 7be22f1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ LDFLAGS-os-FreeBSD = -L/usr/local/lib
5454

5555
LIBS-os-Haiku = -lnetwork -lbe
5656

57-
CPPFLAGS-os-OpenBSD = -DKAK_BIN_PATH="$(bindir)/kak" -I/usr/local/include
57+
CPPFLAGS-os-OpenBSD = -DKAK_BIN_PATH=\"$(bindir)/kak\" -I/usr/local/include
5858
LDFLAGS-os-OpenBSD = -L/usr/local/lib
5959
mandir-os-OpenBSD = $(DESTDIR)$(PREFIX)/man/man1
6060

@@ -136,6 +136,9 @@ doc/kak.1.gz: doc/kak.1
136136

137137
check: test
138138
test: src/kak
139+
if [ $(os) = OpenBSD ]; then \
140+
export KAKOUNE_RUNTIME=$$PWD/share/kak; \
141+
fi && \
139142
cd test && ./run
140143

141144
TAGS: tags

src/file.cc

+1
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,7 @@ String get_kak_binary_path()
666666
buffer[res] = '\0';
667667
return buffer;
668668
#elif defined(__OpenBSD__)
669+
(void)buffer;
669670
return KAK_BIN_PATH;
670671
#elif defined(__sun__)
671672
ssize_t res = readlink("/proc/self/path/a.out", buffer, 2048);

0 commit comments

Comments
 (0)