mes/scaffold/tests
Jan Nieuwenhuizen ff32cd03cc
mescc: Mes C Library: Fix ungetc.
* include/sys/resource.h (OPEN_MAX, RLIMIT_NOFILE): New macro.
* lib/libc.c: Add memset.c include.
* lib/libc+tcc.c: Remove memset.c include.
* lib/linux/tcc.c (close):
* lib/mes/fdgetc.c (__ungetc_buf): New global.
(_ungetc_pos, _ungetc_fd, _ungetc_buf): Remove.  Update users.
* scaffold/tests/65-read.c: Update.
2019-03-16 11:55:00 +01:00
..
00-exit-0.c mescc: x86_64 support: Add tests. 2018-08-15 17:19:50 +02:00
01-return-0.c test: Remove 00-test.i indirection. 2018-08-15 17:27:11 +02:00
02-return-1.c test: Remove 00-test.i indirection. 2018-08-15 17:27:11 +02:00
02-return-1.exit test: enable all tests, use expect count, add tinycc tests. 2018-05-01 16:50:29 +02:00
03-call.c test: Remove 00-test.i indirection. 2018-08-15 17:27:11 +02:00
04-call-0.c test: Remove 00-test.i indirection. 2018-08-15 17:27:11 +02:00
05-call-1.c test: Remove 00-test.i indirection. 2018-08-15 17:27:11 +02:00
05-call-1.exit test: enable all tests, use expect count, add tinycc tests. 2018-05-01 16:50:29 +02:00
06-call-2.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
06-call-not-1.c test: Remove special characters from files. 2019-02-25 23:41:20 +01:00
06-call-string.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
06-call-variable.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
06-not-call-1.c test: Remove special characters from files. 2019-02-25 23:41:20 +01:00
06-return-void.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
07-include.c GNU Mes. 2018-07-22 14:24:36 +02:00
07-include.exit mescc: Add dir to include path. 2018-08-15 19:11:54 +02:00
7a-struct-char-array.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7b-struct-int-array-hello.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7b-struct-int-array-pointer.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7b-struct-int-array.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7c-dynarray.c test: Remove 30-test.i indirection. 2018-08-15 18:01:14 +02:00
7d-cast-char.c test: Remove 30-test.i indirection. 2018-08-15 18:01:14 +02:00
7e-struct-array-access.c test: Remove 30-test.i indirection. 2018-08-15 18:01:14 +02:00
7f-struct-pointer-arithmetic.c test: Remove 30-test.i indirection. 2018-08-15 18:01:14 +02:00
7g-struct-byte-word-field.c test: Remove 30-test.i indirection. 2018-08-15 18:01:14 +02:00
7h-struct-assign.c test: Remove 30-test.i indirection. 2018-08-15 18:01:14 +02:00
7i-struct-struct-simple.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7i-struct-struct.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7k-empty-for.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7k-for-each-elem-simple.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7k-for-each-elem.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7l-struct-any-size-array-simple.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7l-struct-any-size-array.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7m-struct-char-array-assign.c test: Remove 30-test.i indirection. 2018-08-15 18:01:14 +02:00
7n-struct-struct-array.c test: Remove 30-test.i indirection. 2018-08-15 18:01:14 +02:00
7o-struct-pre-post-simple.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7o-struct-pre-post.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7p-struct-cast.c GNU Mes. 2018-07-22 14:24:36 +02:00
7q-bit-field-simple.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7q-bit-field.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7r-sign-extend.c GNU Mes. 2018-07-22 14:24:36 +02:00
7s-struct-short.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7s-unsigned-compare.c GNU Mes. 2018-07-22 14:24:36 +02:00
7t-function-destruct.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7u-call-ternary.c test: Remove special characters from files. 2019-02-25 23:41:20 +01:00
7u-double.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7u-inc-byte-word.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7u-long-long.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7u-struct-func.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7u-struct-size10.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
7u-ternary-expression.c test: Remove special characters from files. 2019-02-25 23:41:20 +01:00
7u-vstack.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
08-assign-global.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
08-assign-negative.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
08-assign.c mescc: Add dir to include path. 2018-08-15 19:11:54 +02:00
10-if-0.c test: Remove 00-test.i indirection. 2018-08-15 17:27:11 +02:00
11-if-1.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
12-if-eq.c test: Remove special characters from files. 2019-02-25 23:41:20 +01:00
13-if-neq.c test: Remove special characters from files. 2019-02-25 23:41:20 +01:00
14-if-goto.c test: Remove 00-test.i indirection. 2018-08-15 17:27:11 +02:00
15-if-not-f.c test: Remove special characters from files. 2019-02-25 23:41:20 +01:00
16-if-t.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
17-compare-and-or.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
17-compare-and.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
17-compare-assign.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
17-compare-call.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
17-compare-char.c core: Support \xNN in reader. Fixes tcc-boot running on Mes. 2018-12-13 18:19:43 +01:00
17-compare-ge.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
17-compare-gt.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
17-compare-le.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
17-compare-lt.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
17-compare-or.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
17-compare-unsigned-char-le.c mescc: Support 64-bit immediates. 2018-10-06 14:51:57 +02:00
17-compare-unsigned-ge.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
17-compare-unsigned-gt.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
17-compare-unsigned-le.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
17-compare-unsigned-long-le.c mescc: Support 64-bit immediates. 2018-10-06 14:51:57 +02:00
17-compare-unsigned-lt.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
17-compare-unsigned-short-le.c mescc: Support 64-bit immediates. 2018-10-06 14:51:57 +02:00
18-assign-shadow.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
20-while.c test: Remove 00-test.i indirection. 2018-08-15 17:27:11 +02:00
21-char-array-simple.c test: Remove special characters from files. 2019-02-25 23:41:20 +01:00
21-char-array.c test: Remove special characters from files. 2019-02-25 23:41:20 +01:00
22-while-char-array.c test: Remove special characters from files. 2019-02-25 23:41:20 +01:00
23-global-pointer-init-null.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
23-global-pointer-init.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
23-global-pointer-pointer-ref.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
23-global-pointer-ref.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
23-pointer-sub.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
23-pointer.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
32-call-wrap.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
32-compare.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
33-and-or.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
34-pre-post.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
35-compare-char.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
36-compare-arithmetic.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
37-compare-assign.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
38-compare-call-2.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
38-compare-call-3.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
38-compare-call.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
40-if-else.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
41-ternary.c test: Remove special characters from files. 2019-02-25 23:41:20 +01:00
42-goto-label.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
43-for-do-while.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
44-switch-body-fallthrough.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
44-switch-fallthrough.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
44-switch.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
45-void-call.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
46-function-static.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
47-function-expression.c GNU Mes. 2018-07-22 14:24:36 +02:00
48-global-static.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
51-pointer-sub.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
54-argc.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
54-argv.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
55-char-array.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
60-math.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
61-array.c build: Replace POSIX, posix_p by WITH_GLIBC, wip_glibc_p. 2019-03-23 21:44:00 +01:00
62-array.c GNU Mes. 2018-07-22 14:24:36 +02:00
63-struct-array-assign.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
63-struct-array-compare.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
63-struct-array.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
63-struct-assign.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
63-struct-cell.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
63-struct-function.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
63-struct-local.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
63-struct-pointer.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
63-struct.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
64-make-cell.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
65-read.c mescc: Mes C Library: Fix ungetc. 2019-03-16 11:55:00 +01:00
66-local-char-array.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
70-stdarg.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
71-struct-array.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
72-typedef-struct-def.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
73-union-hello.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
73-union.c test: Remove 30-test.i indirection. 2018-08-15 18:01:14 +02:00
74-multi-line-string.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
75-struct-union.c test: Remove 30-test.i indirection. 2018-08-15 18:01:14 +02:00
76-pointer-arithmetic-pp.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
76-pointer-arithmetic.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
77-pointer-assign.c test: Remove 30-test.i indirection. 2018-08-15 18:01:14 +02:00
78-union-struct.c test: Remove 30-test.i indirection. 2018-08-15 18:01:14 +02:00
79-int-array-simple.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
79-int-array.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
82-define.c Add missing copyright headers. 2018-07-23 19:10:34 +02:00
83-heterogenoous-init.c GNU Mes. 2018-07-22 14:24:36 +02:00
84-struct-field-list.c GNU Mes. 2018-07-22 14:24:36 +02:00
85-sizeof.c mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. 2018-08-15 18:26:55 +02:00
90-goto-var.c Add missing copyright headers. 2018-07-23 19:10:34 +02:00
91-goto-array.c Add missing copyright headers. 2018-07-23 19:10:34 +02:00
a0-call-trunc-char.c mescc: Fix truncation of short. 2018-10-06 11:57:04 +02:00
a0-call-trunc-int.c mescc: Support 64-bit immediates. 2018-10-06 14:51:57 +02:00
a0-call-trunc-short.c mescc: Fix truncation of short. 2018-10-06 11:57:04 +02:00
a0-math-divide-signed-negative.c mescc: Support negative divide. 2018-10-06 17:28:08 +02:00
a1-global-no-align.c mescc: Support --align, off by default. 2018-10-06 15:56:14 +02:00
a1-global-no-clobber.c mescc: Support --align, off by default. 2018-10-06 15:56:14 +02:00
exit-42.i GNU Mes. 2018-07-22 14:24:36 +02:00
t.c test: Remove special characters from files. 2019-02-25 23:41:20 +01:00