Bläddra i källkod

Regenerate test output after !220

jD91mZM2 5 år sedan
förälder
incheckning
0af78b1e06
3 ändrade filer med 32 tillägg och 0 borttagningar
  1. 1 0
      tests/Makefile
  2. 0 0
      tests/expected/stdlib/alloc.stderr
  3. 31 0
      tests/expected/stdlib/alloc.stdout

+ 1 - 0
tests/Makefile

@@ -37,6 +37,7 @@ EXPECT_NAMES=\
 	stdio/setvbuf \
 	stdio/sprintf \
 	stdlib/a64l \
+	stdlib/alloc \
 	stdlib/atof \
 	stdlib/atoi \
 	stdlib/div \

+ 0 - 0
tests/expected/stdlib/alloc.stderr


+ 31 - 0
tests/expected/stdlib/alloc.stdout

@@ -0,0 +1,31 @@
+malloc                : 0x2038870, errno: 0 = Success
+malloc (SIZE_MAX)     : (nil), errno: 12 = Out of memory
+calloc                : 0x2038870, errno: 0 = Success
+calloc (overflowing)  : (nil), errno: 12 = Out of memory
+realloc               : 0x2038870, errno: 0 = Success
+realloc (SIZE_MAX)    : (nil), errno: 12 = Out of memory
+memalign              : 0x2038a00, errno: 0 = Success
+memalign (SIZE_MAX)   : (nil), errno: 12 = Out of memory
+memalign (alignment 0): (nil), errno: 22 = Invalid argument
+memalign (alignment 3): (nil), errno: 22 = Invalid argument
+aligned_alloc (size % alignment == 0):
+                        0x2038980, errno: 0 = Success
+aligned_alloc (size % alignment != 0):
+                        (nil), errno: 22 = Invalid argument
+valloc                : 0x2039000, errno: 0 = Success
+valloc (SIZE_MAX)     : (nil), errno: 12 = Out of memory
+posix_memalign:
+                        0x2038980, return value: 0 = Success,
+                        errno: 0 = Success
+posix_memalign (alignment 0):
+                        (nil), return value: 22 = Invalid argument,
+                        errno: 0 = Success
+posix_memalign (non-power-of-two multiple of sizeof(void *)):
+                        (nil), return value: 22 = Invalid argument,
+                        errno: 0 = Success
+posix_memalign (size 0):
+                        0x2038ac0, return value: 0 = Success,
+                        errno: 0 = Success
+posix_memalign (SIZE_MAX):
+                        (nil), return value: 12 = Out of memory,
+                        errno: 12 = Out of memory