mirror of
https://github.com/dart-lang/sdk
synced 2024-09-04 16:03:44 +00:00
First step in enabling the process tests
This will enable the process tests for debug mode on Linux and Mac OS. When access to command line options becomes available I will pass the full path to the process_test executable on the command line instead of hard-coding a relative path. R=ager@google.com BUG= TEST= Review URL: https://chromereviews.googleplex.com/3524014 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
f5dab1d2ff
commit
f4b71c573b
|
@ -4,17 +4,32 @@
|
|||
|
||||
prefix dart
|
||||
|
||||
[ $arch == ia32 || $arch == dartium ]
|
||||
# Process tests which are pending process changes.
|
||||
Process*: Skip
|
||||
[ $arch == ia32]
|
||||
ManyEchoServerTest: Skip # Bug 5103754
|
||||
|
||||
|
||||
[ $arch == ia32 && $mode == release]
|
||||
# Currently process tests are bound to debug mode.
|
||||
Process*: Skip
|
||||
|
||||
|
||||
[ $arch == ia32 && $system == macos]
|
||||
# Currently process tests are not working on Mac OS.
|
||||
Process*: Skip
|
||||
|
||||
|
||||
[ $arch == ia32 && $system == win32]
|
||||
# Windows implementation of Process is still pending.
|
||||
Process*: Skip
|
||||
EchoServerStreamReadUntilTest: Skip # Bug 5414270
|
||||
|
||||
|
||||
[ $arch == dartium ]
|
||||
# Server specific tests OK to fail in the browser
|
||||
EchoServerTest: Skip # Uses Socket
|
||||
EchoServerStreamTest: Skip # Uses Socket
|
||||
EchoServerStreamReadUntilTest: Skip # Uses Socket
|
||||
ManyEchoServerTest: Skip # Uses Socket
|
||||
SocketCloseTest: Skip # Uses Socket
|
||||
SocketExceptionTest: Skip # Uses Socket
|
||||
FileTest: Skip
|
||||
|
@ -24,6 +39,7 @@ TimerRepeatTest: Skip # Uses EventHandler
|
|||
MultipleTimerTest: Skip # Uses EventHandler
|
||||
TimerCancelTest: Skip # Uses EventHandler
|
||||
FileInputStreamTest: Skip # Uses TextFileInputStream.
|
||||
Process*: Skip # Uses Process
|
||||
|
||||
|
||||
[ $arch == dartc || $arch == chromium ]
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
class ProcessExitTest {
|
||||
|
||||
static void testExit() {
|
||||
Process process = new Process("./process_test",
|
||||
Process process = new Process("out/Debug_ia32/process_test",
|
||||
const ["0", "0", "99", "0"]);
|
||||
|
||||
void exitHandler(int exitCode) {
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
class ProcessSegfaultTest {
|
||||
|
||||
static void testExit() {
|
||||
Process process = new Process("./process_test", const ["0", "0", "1", "1"]);
|
||||
Process process = new Process("out/Debug_ia32/process_test",
|
||||
const ["0", "0", "1", "1"]);
|
||||
|
||||
void exitHandler(int exitCode) {
|
||||
process.close();
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
class ProcessStderrTest {
|
||||
|
||||
static void testExit() {
|
||||
Process process = new Process("./process_test",
|
||||
Process process = new Process("out/Debug_ia32/process_test",
|
||||
const ["1", "1", "99", "0"]);
|
||||
final int BUFFERSIZE = 10;
|
||||
final int STARTCHAR = 65;
|
||||
Array<int> buffer = new Array<int>(BUFFERSIZE);
|
||||
List<int> buffer = new List<int>(BUFFERSIZE);
|
||||
for (int i = 0; (i < BUFFERSIZE - 1); i++) {
|
||||
buffer[i] = STARTCHAR + i;
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ class ProcessStderrTest {
|
|||
|
||||
process.start();
|
||||
|
||||
Array<int> readBuffer = new Array<int>(BUFFERSIZE);
|
||||
List<int> readBuffer = new List<int>(BUFFERSIZE);
|
||||
|
||||
void dataWritten() {
|
||||
void readData() {
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
class ProcessStdoutTest {
|
||||
|
||||
static void testExit() {
|
||||
Process process = new Process("./process_test",
|
||||
Process process = new Process("out/Debug_ia32//process_test",
|
||||
const ["0", "1", "99", "0"]);
|
||||
final int BUFFERSIZE = 10;
|
||||
final int STARTCHAR = 65;
|
||||
Array<int> buffer = new Array<int>(BUFFERSIZE);
|
||||
List<int> buffer = new List<int>(BUFFERSIZE);
|
||||
for (int i = 0; (i < BUFFERSIZE - 1); i++) {
|
||||
buffer[i] = STARTCHAR + i;
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ class ProcessStdoutTest {
|
|||
|
||||
process.start();
|
||||
|
||||
Array<int> readBuffer = new Array<int>(BUFFERSIZE);
|
||||
List<int> readBuffer = new List<int>(BUFFERSIZE);
|
||||
|
||||
void dataWritten() {
|
||||
print("data written");
|
||||
|
|
Loading…
Reference in a new issue