mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 08:58:05 +02:00
[list] Adds tests of the sort function
Sorts 100 random integers. Reports any out of order and returns an error code.
This commit is contained in:
parent
a8c9973d67
commit
48b61807ba
1 changed files with 2 additions and 2 deletions
|
|
@ -363,8 +363,8 @@ main (int argc,
|
|||
|
||||
for (i = 0; i<100; i++)
|
||||
{
|
||||
value = malloc(sizeof(int));
|
||||
*value = random() %100;
|
||||
value = malloc (sizeof (int));
|
||||
*value = random() % 100;
|
||||
ply_list_append_data (list, (void *) value);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue