# -*- perl -*- use strict; use warnings; use tests::tests; use tests::random; check_archive ({“testme” => [random_bytes (72943)]}); pass;
/* Child process for mmap-inherit test. Tries to write to a mapping present in the parent. The process must be terminated with -1 exit code.…
/* Starts 60 threads numbered 0 through 59. Thread #i sleeps for (10+i) seconds, then spins in a loop for 60 seconds, then sleeps until…
#ifndef THREADS_INTERRUPT_H #define THREADS_INTERRUPT_H #include #include /* Interrupts on or off? */ enum intr_level { INTR_OFF, /* Interrupts disabled. */ INTR_ON /* Interrupts enabled. */…
/* Try to write to the code segment. The process must be terminated with -1 exit code. */ #include “tests/lib.h” #include “tests/main.h” void test_main (void)…
Basic: Priority based ready queue: 20 alarm-priority 10 priority-preempt 5 priority-change 5 priority-fifo
#ifndef DEVICES_PARTITION_H #define DEVICES_PARTITION_H struct block; void partition_scan (struct block *); #endif /* devices/partition.h */
# -*- perl -*- use strict; use warnings; use tests::tests; use tests::cksum; use tests::lib; my ($init, @shuffle); if (1) { # Use precalculated values. $init…
/* Allocates and writes to a 64 kB object on the stack. This must succeed. */ #include #include “tests/arc4.h” #include “tests/cksum.h” #include “tests/lib.h” #include “tests/main.h”…
#include “devices/input.h” #include #include “devices/intq.h” #include “devices/serial.h” /* Stores keys from the keyboard and serial port. */ static struct intq buffer; /* Initializes the input…