google / google/caliper

Broken unit tests

Open
#283 0 comments 0 reactions 0 assignees View on GitHub
P4 status: accepted type=defect
Dominant language
Java
Stars
818
Forks
112
Avg merge
12m
Merged PRs (30d)
5

Description

```
To replicate:
1. git pull (get latest from MASTER)
2. on Windows 7 machine (64 bit), run unit tests through Maven.
3. You will see the following failures:

The Maven build now fails on a few unit tests: (I did "git pull" first):

Results :

Failed tests:
failsToAcceptConnection(com.google.caliper.runner.StreamServiceTest):
expected: but was:
simpleArgsTest(com.google.caliper.runner.WorkerProcessTest): expected:<[/usr/bin/foo/bin/]java> but was:<[C:\usr\bin\foo\bin\]java>

Tests in error:
testReadOutput(com.google.caliper.runner.StreamServiceTest): Expected the service to be RUNNING, but the service has FAILED
failingProcess(com.google.caliper.runner.StreamServiceTest): Expected the service to be RUNNING, but the service has FAILED
processDoesntExit(com.google.caliper.runner.StreamServiceTest): Expected the service to be RUNNING, but the service has FAILED
testSocketInputOutput(com.google.caliper.runner.StreamServiceTest): Expected the service to be RUNNING, but the service has FAILED
testSocketClosesBeforeProcess(com.google.caliper.runner.StreamServiceTest): Expected the service to be RUNNING, but the service has FAILED
shutdownHook_waitFor(com.google.caliper.runner.WorkerProcessTest): Cannot run program "bash": CreateProcess error=2, The system cannot find the file specified
shutdownHook_exitValueThrows(com.google.caliper.runner.WorkerProcessTest): Cannot run program "bash": CreateProcess error=2, The system cannot find the file specified
shutdownHook_exitValue(com.google.caliper.runner.WorkerProcessTest): Cannot run program "bash": CreateProcess error=2, The system cannot find the file specified
shutdownHook_destroy(com.google.caliper.runner.WorkerProcessTest): Cannot run program "bash": CreateProcess error=2, The system cannot find the file specified

Tests run: 96, Failures: 2, Errors: 9, Skipped: 0

Also - one other failure seen when running Maven test through Git shell (on
same windows machine):

Results :

Failed tests: simpleArgsTest(com.google.caliper.runner.WorkerProcessTest):
expected:<[/usr/bin/foo/bin/]java> but was:<[C:\usr\bin\foo\bin\]java>

Tests run: 96, Failures: 1, Errors: 0, Skipped: 0

```

Original issue reported on code.google.com by `shalomsh...@gmail.com` on 9 Jan 2014 at 11:16

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.