diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-07 15:06:57 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-29 16:17:56 +0200 |
commit | 367c47c886af7d915e23de8d6aae0a1c135c0350 (patch) | |
tree | b87635a9c0588d7554878bb421843af37ed7bf3c /src/shared/tests.h | |
parent | test: add test for systemctl link & enable (diff) | |
download | systemd-367c47c886af7d915e23de8d6aae0a1c135c0350.tar.xz systemd-367c47c886af7d915e23de8d6aae0a1c135c0350.zip |
tests: add helper for creating tempfiles with content
I put it in tests because I think we're most likely to use it in tests.
If necessary, it can be moved somewhere else later.
Diffstat (limited to 'src/shared/tests.h')
-rw-r--r-- | src/shared/tests.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/tests.h b/src/shared/tests.h index ef6acd368e..ade527590b 100644 --- a/src/shared/tests.h +++ b/src/shared/tests.h @@ -30,6 +30,8 @@ void test_setup_logging(int level); int log_tests_skipped(const char *message); int log_tests_skipped_errno(int r, const char *message); +int write_tmpfile(char *pattern, const char *contents); + bool have_namespaces(void); /* We use the small but non-trivial limit here */ |