diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/rts/OptParse/OptParseTest.c | 3 | ||||
-rw-r--r-- | testsuite/tests/rts/OptParse/OptParseTest.stderr | 156 | ||||
-rw-r--r-- | testsuite/tests/rts/OptParse/OptParseTest.stdout | 96 |
3 files changed, 255 insertions, 0 deletions
diff --git a/testsuite/tests/rts/OptParse/OptParseTest.c b/testsuite/tests/rts/OptParse/OptParseTest.c index 07f64956b1..b6fa9ba0c3 100644 --- a/testsuite/tests/rts/OptParse/OptParseTest.c +++ b/testsuite/tests/rts/OptParse/OptParseTest.c @@ -79,6 +79,9 @@ int main (int argc, char *argv[]) STGWORD64_FLAG_TEST(STACK_CHUNK_BUFFER_SIZE); STGWORD64_FLAG_TEST(STACK_INITIAL_SIZE); + STGWORD64_FLAG_TEST(HEAP_LIMIT_GRACE); + STGWORD64_FLAG_TEST(HEAP_LIMIT_SIZE); + printf("\n=== OptParseTest END ===\n"); return 0; } diff --git a/testsuite/tests/rts/OptParse/OptParseTest.stderr b/testsuite/tests/rts/OptParse/OptParseTest.stderr index 4cd048f693..baa7c81ccf 100644 --- a/testsuite/tests/rts/OptParse/OptParseTest.stderr +++ b/testsuite/tests/rts/OptParse/OptParseTest.stderr @@ -1988,3 +1988,159 @@ unknown RTS option: -ki=true (FAIL_TEST) input: -kijhgl unknown RTS option: -kijhgl + +(TEST) input: --heap-limit-grace=8193 +50: heap-limit-grace Mgrace UNSAFE +expected: 8193 actual: 8193 + +(TEST) input: --heap-limit-grace=8193K +50: heap-limit-grace Mgrace UNSAFE +expected: 8389632 actual: 8389632 + +(TEST) input: --heap-limit-grace=2M +50: heap-limit-grace Mgrace UNSAFE +expected: 2097152 actual: 2097152 + +(TEST) input: --heap-limit-grace=9G +50: heap-limit-grace Mgrace UNSAFE +expected: 9663676416 actual: 9663676416 + +(TEST) input: --heap-limit-grace=2G +50: heap-limit-grace Mgrace UNSAFE +expected: 2147483648 actual: 2147483648 + +(TEST) input: --heap-limit-grace=3333w +50: heap-limit-grace Mgrace UNSAFE +expected: 26664 actual: 26664 + +(FAIL_TEST) input: --heap-limit-grace= +unknown RTS option: --heap-limit-grace= + +(FAIL_TEST) input: --heap-limit-grace=fbar +bad value for heap-limit-grace=fbar + +(FAIL_TEST) input: --heap-limit-grace=false +bad value for heap-limit-grace=false + +(FAIL_TEST) input: --heap-limit-grace=true +bad value for heap-limit-grace=true + +(FAIL_TEST) input: --heap-limit-gracexxzag +unknown RTS option: --heap-limit-gracexxzag + +(TEST) input: -Mgrace8193 +50: heap-limit-grace Mgrace UNSAFE +expected: 8193 actual: 8193 + +(TEST) input: -Mgrace8193k +50: heap-limit-grace Mgrace UNSAFE +expected: 8389632 actual: 8389632 + +(TEST) input: -Mgrace2m +50: heap-limit-grace Mgrace UNSAFE +expected: 2097152 actual: 2097152 + +(TEST) input: -Mgrace9g +50: heap-limit-grace Mgrace UNSAFE +expected: 9663676416 actual: 9663676416 + +(TEST) input: -Mgrace1G +50: heap-limit-grace Mgrace UNSAFE +expected: 1073741824 actual: 1073741824 + +(TEST) input: -Mgrace3333w +50: heap-limit-grace Mgrace UNSAFE +expected: 26664 actual: 26664 + +(FAIL_TEST) input: -Mgrace= +unknown RTS option: -Mgrace= + +(FAIL_TEST) input: -Mgrace=baz +unknown RTS option: -Mgrace=baz + +(FAIL_TEST) input: -Mgrace=false +unknown RTS option: -Mgrace=false + +(FAIL_TEST) input: -Mgrace=true +unknown RTS option: -Mgrace=true + +(FAIL_TEST) input: -Mgracejhgl +unknown RTS option: -Mgracejhgl + +(TEST) input: --heap-limit-size=8193 +51: heap-limit-size M UNSAFE +expected: 8193 actual: 8193 + +(TEST) input: --heap-limit-size=8193K +51: heap-limit-size M UNSAFE +expected: 8389632 actual: 8389632 + +(TEST) input: --heap-limit-size=2M +51: heap-limit-size M UNSAFE +expected: 2097152 actual: 2097152 + +(TEST) input: --heap-limit-size=9G +51: heap-limit-size M UNSAFE +expected: 9663676416 actual: 9663676416 + +(TEST) input: --heap-limit-size=2G +51: heap-limit-size M UNSAFE +expected: 2147483648 actual: 2147483648 + +(TEST) input: --heap-limit-size=3333w +51: heap-limit-size M UNSAFE +expected: 26664 actual: 26664 + +(FAIL_TEST) input: --heap-limit-size= +unknown RTS option: --heap-limit-size= + +(FAIL_TEST) input: --heap-limit-size=fbar +bad value for heap-limit-size=fbar + +(FAIL_TEST) input: --heap-limit-size=false +bad value for heap-limit-size=false + +(FAIL_TEST) input: --heap-limit-size=true +bad value for heap-limit-size=true + +(FAIL_TEST) input: --heap-limit-sizexxzag +unknown RTS option: --heap-limit-sizexxzag + +(TEST) input: -M8193 +51: heap-limit-size M UNSAFE +expected: 8193 actual: 8193 + +(TEST) input: -M8193k +51: heap-limit-size M UNSAFE +expected: 8389632 actual: 8389632 + +(TEST) input: -M2m +51: heap-limit-size M UNSAFE +expected: 2097152 actual: 2097152 + +(TEST) input: -M9g +51: heap-limit-size M UNSAFE +expected: 9663676416 actual: 9663676416 + +(TEST) input: -M1G +51: heap-limit-size M UNSAFE +expected: 1073741824 actual: 1073741824 + +(TEST) input: -M3333w +51: heap-limit-size M UNSAFE +expected: 26664 actual: 26664 + +(FAIL_TEST) input: -M= +unknown RTS option: -M= + +(FAIL_TEST) input: -M=baz +unknown RTS option: -M=baz + +(FAIL_TEST) input: -M=false +unknown RTS option: -M=false + +(FAIL_TEST) input: -M=true +unknown RTS option: -M=true + +(FAIL_TEST) input: -Mjhgl +unknown RTS option: -Mjhgl diff --git a/testsuite/tests/rts/OptParse/OptParseTest.stdout b/testsuite/tests/rts/OptParse/OptParseTest.stdout index 5765b56d99..38ab193bb6 100644 --- a/testsuite/tests/rts/OptParse/OptParseTest.stdout +++ b/testsuite/tests/rts/OptParse/OptParseTest.stdout @@ -770,4 +770,100 @@ 49: stack-initial-size ki UNSAFE value: 26664 +(TEST) input: --heap-limit-grace=8193 +50: heap-limit-grace Mgrace UNSAFE + value: 8193 + +(TEST) input: --heap-limit-grace=8193K +50: heap-limit-grace Mgrace UNSAFE + value: 8389632 + +(TEST) input: --heap-limit-grace=2M +50: heap-limit-grace Mgrace UNSAFE + value: 2097152 + +(TEST) input: --heap-limit-grace=9G +50: heap-limit-grace Mgrace UNSAFE + value: 9663676416 + +(TEST) input: --heap-limit-grace=2G +50: heap-limit-grace Mgrace UNSAFE + value: 2147483648 + +(TEST) input: --heap-limit-grace=3333w +50: heap-limit-grace Mgrace UNSAFE + value: 26664 + +(TEST) input: -Mgrace8193 +50: heap-limit-grace Mgrace UNSAFE + value: 8193 + +(TEST) input: -Mgrace8193k +50: heap-limit-grace Mgrace UNSAFE + value: 8389632 + +(TEST) input: -Mgrace2m +50: heap-limit-grace Mgrace UNSAFE + value: 2097152 + +(TEST) input: -Mgrace9g +50: heap-limit-grace Mgrace UNSAFE + value: 9663676416 + +(TEST) input: -Mgrace1G +50: heap-limit-grace Mgrace UNSAFE + value: 1073741824 + +(TEST) input: -Mgrace3333w +50: heap-limit-grace Mgrace UNSAFE + value: 26664 + +(TEST) input: --heap-limit-size=8193 +51: heap-limit-size M UNSAFE + value: 8193 + +(TEST) input: --heap-limit-size=8193K +51: heap-limit-size M UNSAFE + value: 8389632 + +(TEST) input: --heap-limit-size=2M +51: heap-limit-size M UNSAFE + value: 2097152 + +(TEST) input: --heap-limit-size=9G +51: heap-limit-size M UNSAFE + value: 9663676416 + +(TEST) input: --heap-limit-size=2G +51: heap-limit-size M UNSAFE + value: 2147483648 + +(TEST) input: --heap-limit-size=3333w +51: heap-limit-size M UNSAFE + value: 26664 + +(TEST) input: -M8193 +51: heap-limit-size M UNSAFE + value: 8193 + +(TEST) input: -M8193k +51: heap-limit-size M UNSAFE + value: 8389632 + +(TEST) input: -M2m +51: heap-limit-size M UNSAFE + value: 2097152 + +(TEST) input: -M9g +51: heap-limit-size M UNSAFE + value: 9663676416 + +(TEST) input: -M1G +51: heap-limit-size M UNSAFE + value: 1073741824 + +(TEST) input: -M3333w +51: heap-limit-size M UNSAFE + value: 26664 + === OptParseTest END === |