Select Git revision
-
Shawn O. Pearce authored
If the user has partial includes disabled then it doesn't matter what state the working directory is in; if the file has been included in the next commit its index state is A or M and we should immediately run update-index on the working directory file to bring the index in sync with the working directory. Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce authoredIf the user has partial includes disabled then it doesn't matter what state the working directory is in; if the file has been included in the next commit its index state is A or M and we should immediately run update-index on the working directory file to bring the index in sync with the working directory. Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
f.cc 692 B
#include "os.h"
#include "test/test.h"
DeclareTask(H1);
DeclareTask(H2);
DeclareTask(H3);
DeclareAlarm(A1);
DeclareCounter(C1);
TEST_MAKE_OS_MAIN(StartOS(0))
volatile int a;
TASK(H1) {
test_trace('X');
TerminateTask();
}
TASK(H2) {
#ifndef FAIL
a++;
#else
// Stop immedately
a = 100;
#endif
test_trace('0' + a);
ActivateTask(H3);
Machine::nop();
TerminateTask();
}
TASK(H3) {
test_trace('.');
while (a <= 3) {};
test_trace(':');
TerminateTask();
}
void PreIdleHook() {
/* The testcase has finished, check the output */
static int cycle_count;
cycle_count++;
if (cycle_count > 5) {
test_trace_assert("1.234:5.:6.:7.:8.:");
test_finish();
ShutdownMachine();
}
}