mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add tinydir.
* gnu/packages/c.scm (tinydir): New variable. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
parent
f169d7a128
commit
d42f648c0c
2 changed files with 57 additions and 0 deletions
16
gnu/packages/patches/tinydir-fix-cbehave-test.patch
Normal file
16
gnu/packages/patches/tinydir-fix-cbehave-test.patch
Normal file
|
@ -0,0 +1,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);
|
||||
+}
|
Loading…
Add table
Add a link
Reference in a new issue