Skip to content

Commit 14b285e

Browse files
arrowdalexey-tikhonov
authored andcommitted
test_iobuf.c: Only run the test_sss_iobuf_secure subtest on Linux
Reviewed-by: Alejandro López <allopez@redhat.com> Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
1 parent 488e540 commit 14b285e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tests/cmocka/test_iobuf.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ static void test_sss_iobuf_secure(void **state)
191191
struct sss_iobuf *iobuf_secret_2;
192192
struct sss_iobuf *iobuf_nosecret;
193193

194+
#ifndef __linux__
195+
/* This test uses Linux procfs to parse the process' memory map. */
196+
skip();
197+
#endif
198+
194199
#ifdef HAVE_VALGRIND_VALGRIND_H
195200
/* Valgrind interferes with this test by somehow making disappear the heap.
196201
* So don't run it on Valgrind. */

0 commit comments

Comments
 (0)