~ruther/guix-local

ref: a704c8a005240846c37c8dd49f00a46f0347c592 guix-local/gnu/packages/patches/tinydir-fix-cbehave-test.patch -rw-r--r-- 489 bytes
a704c8a0 — Sharlatan Hellseher gnu: go-github-com-xanzy-ssh-agent: Move to (gnu packages golang-crypto). 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Make test work with upstream cbehave
(tinydir bundles a modified version)

diff --git a/tests/file_open_test.c b/tests/file_open_test.c
index 3e659bc..9f6f88d 100644
--- a/tests/file_open_test.c
+++ b/tests/file_open_test.c
@@ -19,4 +19,7 @@ FEATURE(file_open, "File open")
 	SCENARIO_END
 FEATURE_END
 
-CBEHAVE_RUN("File open:", TEST_FEATURE(file_open))
+int main(void) {
+	cbehave_feature _cfeatures[] = {{feature_idx(file_open)}};
+	return cbehave_runner("File open:", _cfeatures);
+}