From 12932ca20847e09be31fbce3bf029389a47b84cd Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 6 Jun 2021 00:02:57 +0200 Subject: added test suite cases for memory limiting and command execution * Turned out to be useful in debugging the "Memory limiting during spawning" test case on Windows. * Use UNIX shell emulation (0,128ED) in all test cases. Should be necessary in order to run the testsuite on Windows, but it is currently broken anyway. * avoid when preprocessing files - use GNU Make's $(shell) instead * Fixes builds on MinGW where there are still problems with and at least in the virtual build environment. * Results in a another automake warning about non-POSIX Make constructs. This is not critical since we depend on GNU Make anyway. --- src/memory.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/memory.c b/src/memory.c index 2d93b12..5958224 100644 --- a/src/memory.c +++ b/src/memory.c @@ -403,6 +403,11 @@ malloc_trim(size_t pad) * * NOTE: At least on Windows 2000, we run twice as fast than * when polling from a dedicated thread. + * + * NOTE: On Wine, we cannot recover from hitting the memory + * limit, but this is probably because malloc() is actually + * forwarded to the glibc which needs malloc_trim(). + * This should not be a problem on real Windows. */ static gsize teco_memory_get_usage(void) -- cgit v1.2.3