mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
libiberty: sync with gcc
Import the following commits from GCC as of r16-3056-gca2169c65bd169: 0d0837df697 libiberty: disable logging of list content for doubly-linked list tests
This commit is contained in:
@@ -1,3 +1,14 @@
|
|||||||
|
2025-08-06 Matthieu Longo <matthieu.longo@arm.com>
|
||||||
|
|
||||||
|
* testsuite/test-doubly-linked-list.c: disable debug logging on
|
||||||
|
stdout.
|
||||||
|
|
||||||
|
2025-07-09 Matthieu Longo <matthieu.longo@arm.com>
|
||||||
|
|
||||||
|
* Makefile.in: Add new header.
|
||||||
|
* testsuite/Makefile.in: Add new test.
|
||||||
|
* testsuite/test-doubly-linked-list.c: New test.
|
||||||
|
|
||||||
2025-05-13 Andreas Schwab <schwab@suse.de>
|
2025-05-13 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
* regex.c (regex_compile): Don't write beyond array bounds when
|
* regex.c (regex_compile): Don't write beyond array bounds when
|
||||||
|
|||||||
@@ -155,19 +155,26 @@ bool check(const char *op,
|
|||||||
bool success = true;
|
bool success = true;
|
||||||
bool res;
|
bool res;
|
||||||
|
|
||||||
l_print (wrapper->first);
|
#define DUMP_LIST 0
|
||||||
|
|
||||||
|
if (DUMP_LIST)
|
||||||
|
l_print (wrapper->first);
|
||||||
|
|
||||||
res = run_test (expect, wrapper, false);
|
res = run_test (expect, wrapper, false);
|
||||||
printf ("%s: test-linked-list::%s: check forward conformity\n",
|
printf ("%s: test-linked-list::%s: check forward conformity\n",
|
||||||
res ? "PASS": "FAIL", op);
|
res ? "PASS": "FAIL", op);
|
||||||
success &= res;
|
success &= res;
|
||||||
|
|
||||||
l_reverse_print (wrapper->last);
|
if (DUMP_LIST)
|
||||||
|
l_reverse_print (wrapper->last);
|
||||||
|
|
||||||
res = run_test (expect, wrapper, true);
|
res = run_test (expect, wrapper, true);
|
||||||
printf ("%s: test-linked-list::%s: check backward conformity\n",
|
printf ("%s: test-linked-list::%s: check backward conformity\n",
|
||||||
res ? "PASS": "FAIL", op);
|
res ? "PASS": "FAIL", op);
|
||||||
success &= res;
|
success &= res;
|
||||||
|
|
||||||
printf("\n");
|
if (DUMP_LIST)
|
||||||
|
printf("\n");
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user