Skip to content

Commit

Permalink
Changed per the discussion at kaldi-asr/kaldi#3
Browse files Browse the repository at this point in the history
  • Loading branch information
kkm committed Jul 10, 2015
1 parent e238b9d commit eadd779
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/util/kaldi-io-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,13 @@ void UnitTestIoNew(bool binary) {
void UnitTestIoPipe(bool binary) {
// This is as UnitTestIoNew except with different filenames.
{
#if defined(_MSC_VER) && !defined(KALDI_CYGWIN_COMPAT)
const char *filename_out = "|copy /b con tmpf.gz",
*filename_in = "copy /b tmpf.gz con|";
#else
const char *filename_out = "|gzip -c > tmpf.gz",
*filename_in = "gunzip -c tmpf.gz |";
#endif

Output ko(filename_out, binary);
std::ostream &outfile = ko.Stream();
Expand Down
2 changes: 2 additions & 0 deletions src/util/kaldi-table-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ void UnitTestReadScriptFile() {
// suppress the warning since I already checked it's OK.
KALDI_ASSERT(!ReadScriptFile(ss, false, &script));
}
#if !defined(_MSC_VER) || defined(KALDI_CYGWIN_COMPAT)
{
Output ko("| gzip -c > tmpf.gz", false); // text mode.
ko.Stream() << "a b\n";
Expand All @@ -83,6 +84,7 @@ void UnitTestReadScriptFile() {
KALDI_ASSERT(!ans);
}
unlink("tmpf.gz");
#endif
}


Expand Down

0 comments on commit eadd779

Please sign in to comment.