Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: c82179c8d8072eb067ae2e51a9229742e064305e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*******************************************************************************
 * Copyright (c) 2008 Wind River Systems and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Wind River Systems - initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.tests.dsf.pda.service.command;

import java.io.File;

import org.eclipse.cdt.examples.dsf.pda.PDAPlugin;
import org.eclipse.core.runtime.Path;
import org.junit.BeforeClass;
import org.junit.Test;

/**
 * 
 */
public class Test1 extends CommandControlTestsBase {

    @BeforeClass
    public static void setProgram() {
        File programFile = PDAPlugin.getFileInPlugin(new Path("samples/example.pda"));
        fProgram = programFile.getPath();
    }

    @Test
    public void testRun() throws Throwable {
        sendCommand("vmresume");
        expectOutput("\"hello\"");
        expectOutput("\"barfoo\"");
        expectOutput("\"first\"");
        expectOutput("\"second\"");
        expectOutput("12");
        expectOutput("11");
        expectOutput("10");
        expectOutput("\"barfoo\"");
        expectOutput("\"first\"");
        expectOutput("\"second\"");
        expectOutput("\"end\"");
    }
}

Back to the top